summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/avatarbynickname.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/avatarbynickname.php b/actions/avatarbynickname.php
index 4b8c84b45..c4cad9c04 100644
--- a/actions/avatarbynickname.php
+++ b/actions/avatarbynickname.php
@@ -39,7 +39,7 @@ class AvatarbynicknameAction extends Action {
}
$user = User::staticGet('nickname', $nickname);
- if ($user) {
+ if (!$user) {
$this->client_error(_t('No such user.'));
return;
}