]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check for error, not success!
authorEvan Prodromou <evan@prodromou.name>
Sat, 12 Jul 2008 05:17:38 +0000 (01:17 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 12 Jul 2008 05:17:38 +0000 (01:17 -0400)
darcs-hash:20080712051738-84dde-70b1dbc5aa034c6aa9151eac5a216701b7860a72.gz

actions/avatarbynickname.php

index 4b8c84b4567ae0802acd0aa5ffecb225e48633ca..c4cad9c040b1cbfeef552b184b0a7b216d9b4f3a 100644 (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;
                }