Incorrect type comparison when the legacy mysql extension is been used
authorMarcel Werk <burntime@woltlab.com>
Wed, 22 Sep 2021 08:57:09 +0000 (10:57 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 22 Sep 2021 08:57:09 +0000 (10:57 +0200)
wcfsetup/install/files/lib/data/user/UserProfile.class.php

index 95db5a1b49c0dfd9d22efcc9387c7172a8c5ef45..ae2073d96ed972bd02f220432dd3928fc905668e 100644 (file)
@@ -247,7 +247,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject
             } elseif ($type === UserIgnore::TYPE_BLOCK_DIRECT_CONTACT) {
                 return \in_array($userType, [UserIgnore::TYPE_BLOCK_DIRECT_CONTACT, UserIgnore::TYPE_HIDE_MESSAGES]);
             } elseif ($type === UserIgnore::TYPE_HIDE_MESSAGES) {
-                return $userType === UserIgnore::TYPE_HIDE_MESSAGES;
+                return $userType == UserIgnore::TYPE_HIDE_MESSAGES;
             } else {
                 return false;
             }