Fix incorrect email confirm check
authorjoshuaruesweg <ruesweg@woltlab.com>
Wed, 3 Jun 2020 14:50:30 +0000 (16:50 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Wed, 3 Jun 2020 14:50:30 +0000 (16:50 +0200)
wcfsetup/install/files/lib/data/user/User.class.php

index e4f7560633d7478a5fc7858e1f12d90385625073..e2a4719fab4e353572d6e3167ef29e0740505d97 100644 (file)
@@ -427,7 +427,7 @@ final class User extends DatabaseObject implements IRouteController, IUserConten
         * @since       5.3
         */
        public function isEmailConfirmed() {
-               return empty($this->emailConfirmed);
+               return $this->emailConfirmed === null;
        }
        
        /**