diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-12 01:17:38 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-12 01:17:38 -0400 |
commit | 378985a4d6918cf725d077eb1b47ac8643d61dfd (patch) | |
tree | 8b952ecb8f12e56443e7c420e9ae69b254f3352b | |
parent | ad410c0c616035fa1ce7372a3ceca25d6a9010bb (diff) |
check for error, not success!
darcs-hash:20080712051738-84dde-70b1dbc5aa034c6aa9151eac5a216701b7860a72.gz
-rw-r--r-- | actions/avatarbynickname.php | 2 |
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; } |