]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
bug in userbyid
authorEvan Prodromou <evan@prodromou.name>
Fri, 11 Jul 2008 04:20:22 +0000 (00:20 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 11 Jul 2008 04:20:22 +0000 (00:20 -0400)
darcs-hash:20080711042022-84dde-a29b769e1c032cb1b8bf13a2e6c69671169c032f.gz

actions/userbyid.php

index 501e165ab0ace55c1827ad3b5c217081fa5e2641..da61c7b6e695d47c8becd568391ac925833ececc 100644 (file)
@@ -27,7 +27,7 @@ class UserbyidAction extends Action {
                $this->client_error(_t('No id.'));
                }
                $user =& User::staticGet($id);
-               if (!$id) {
+               if (!$user) {
                        $this->client_error(_t('No such user.'));
                }
                $url=common_local_url('showstream',