From 1ab03219ba8f3477425b7eca962690cf1623d3d7 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 22 Sep 2021 10:57:09 +0200 Subject: [PATCH] Incorrect type comparison when the legacy mysql extension is been used --- wcfsetup/install/files/lib/data/user/UserProfile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index 95db5a1b49..ae2073d96e 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -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; } -- 2.20.1