check for error, not success!
darcs-hash:20080712051738-84dde-70b1dbc5aa034c6aa9151eac5a216701b7860a72.gz
This commit is contained in:
parent
ad410c0c61
commit
378985a4d6
|
@ -39,7 +39,7 @@ class AvatarbynicknameAction extends Action {
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = User::staticGet('nickname', $nickname);
|
$user = User::staticGet('nickname', $nickname);
|
||||||
if ($user) {
|
if (!$user) {
|
||||||
$this->client_error(_t('No such user.'));
|
$this->client_error(_t('No such user.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user