add condition for NO_AVATAR
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 9 Feb 2015 19:32:40 +0000 (20:32 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 9 Feb 2015 19:32:40 +0000 (20:32 +0100)
wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php

index f20fd00e0b3324dcfc083a410f34db86991680d5..634fbc29a441e42dfea6988605150a052e05e58a 100644 (file)
@@ -51,6 +51,7 @@ class UserAvatarCondition extends AbstractSelectCondition implements IContentCon
                switch ($condition->userAvatar) {
                        case self::NO_AVATAR:
                                $userList->getConditionBuilder()->add('user_table.avatarID IS NULL');
+                               $userList->getConditionBuilder()->add('user_table.enableGravatar = ?', array(0));
                        break;
                        
                        case self::AVATAR: