From 3f7182fd0ac6408963d94bd5bdab68ad2f7e8230 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 8 Nov 2024 12:48:58 +0100 Subject: [PATCH] Use `avatarFileID` instead of `avatarID --- .../lib/system/condition/UserAvatarCondition.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php index 07e584e960..5e386fe108 100644 --- a/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php @@ -61,11 +61,11 @@ class UserAvatarCondition extends AbstractSelectCondition implements switch ($conditionData['userAvatar']) { case self::NO_AVATAR: - $objectList->getConditionBuilder()->add('user_table.avatarID IS NULL'); + $objectList->getConditionBuilder()->add('user_table.avatarFileID IS NULL'); break; case self::AVATAR: - $objectList->getConditionBuilder()->add('user_table.avatarID IS NOT NULL'); + $objectList->getConditionBuilder()->add('user_table.avatarFileID IS NOT NULL'); break; case self::GRAVATAR: @@ -81,10 +81,10 @@ class UserAvatarCondition extends AbstractSelectCondition implements { switch ($condition->userAvatar) { case self::NO_AVATAR: - return !$user->avatarID; + return !$user->avatarFileID; case self::AVATAR: - return $user->avatarID != 0; + return $user->avatarFileID !== null; case self::GRAVATAR: return false; -- 2.20.1