From: Evan Prodromou Date: Sat, 12 Jul 2008 05:17:38 +0000 (-0400) Subject: check for error, not success! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=378985a4d6918cf725d077eb1b47ac8643d61dfd;p=quix0rs-gnu-social.git check for error, not success! darcs-hash:20080712051738-84dde-70b1dbc5aa034c6aa9151eac5a216701b7860a72.gz --- diff --git a/actions/avatarbynickname.php b/actions/avatarbynickname.php index 4b8c84b456..c4cad9c040 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; }