From a16e4584934ebe1df7b4dee01fbdb908a4cc86ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 18 Jun 2020 19:11:43 +0200 Subject: [PATCH] Use bitwise or instead of magic value for constant MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Tim Düsterhus --- wcfsetup/install/files/lib/data/user/User.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index b5a3583c4f..97b7faf57d 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -108,7 +108,7 @@ final class User extends DatabaseObject implements IRouteController, IUserConten const REGISTER_ACTIVATION_NONE = 0; const REGISTER_ACTIVATION_USER = 1; const REGISTER_ACTIVATION_ADMIN = 2; - const REGISTER_ACTIVATION_USER_AND_ADMIN = 3; // self::REGISTER_ACTIVATION_USER | self::REGISTER_ACTIVATION_ADMIN + const REGISTER_ACTIVATION_USER_AND_ADMIN = self::REGISTER_ACTIVATION_USER | self::REGISTER_ACTIVATION_ADMIN /** @noinspection PhpMissingParentConstructorInspection */ /** -- 2.20.1