From 378985a4d6918cf725d077eb1b47ac8643d61dfd Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 12 Jul 2008 01:17:38 -0400 Subject: [PATCH] check for error, not success! darcs-hash:20080712051738-84dde-70b1dbc5aa034c6aa9151eac5a216701b7860a72.gz --- actions/avatarbynickname.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5