Fixed 'numeric value out of range' issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 12:29:05 +0000 (14:29 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 12:29:05 +0000 (14:29 +0200)
wcfsetup/install/files/lib/data/user/UserAction.class.php

index d623975ecd8dd3ba5b86eb5917f88e55ddf62d40..7f626bf867eca25b14f8b323f2aa0de957d6ba84 100644 (file)
@@ -201,6 +201,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                $banExpires = $this->parameters['banExpires'];
                if ($banExpires) {
                        $banExpires = strtotime($banExpires);
+                       if ($banExpires > 2147483647) $banExpires = 2147483647;
                }
                else {
                        $banExpires = 0;