check for error, not success!

darcs-hash:20080712051738-84dde-70b1dbc5aa034c6aa9151eac5a216701b7860a72.gz
This commit is contained in:
Evan Prodromou 2008-07-12 01:17:38 -04:00
parent ad410c0c61
commit 378985a4d6

View File

@ -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;
}