From: Marcel Werk Date: Wed, 22 Sep 2021 08:57:09 +0000 (+0200) Subject: Incorrect type comparison when the legacy mysql extension is been used X-Git-Tag: 5.4.8_dev_1~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ab03219ba8f3477425b7eca962690cf1623d3d7;p=GitHub%2FWoltLab%2FWCF.git Incorrect type comparison when the legacy mysql extension is been used --- 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; }