Banning a user without entering an unbanning date leads to error message
authorMarcel Werk <burntime@woltlab.com>
Tue, 5 Apr 2022 09:20:31 +0000 (11:20 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 5 Apr 2022 09:20:31 +0000 (11:20 +0200)
wcfsetup/install/files/lib/acp/form/UserEditForm.class.php

index 4038b93ffb7aa614996b635155e631cd94b5fa59..91f14bf3cc42aa4ea957089b2bcbd61e1f035113 100755 (executable)
@@ -211,7 +211,7 @@ class UserEditForm extends UserAddForm
         }
         if ($this->banned && !isset($_POST['banNeverExpires'])) {
             if (isset($_POST['banExpires'])) {
-                $this->banExpires = @\strtotime(StringUtil::trim($_POST['banExpires']));
+                $this->banExpires = @\intval(\strtotime(StringUtil::trim($_POST['banExpires'])));
             }
         }