From: Evan Prodromou Date: Fri, 11 Jul 2008 04:20:22 +0000 (-0400) Subject: bug in userbyid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b5e6de1f4f897b7d83cd76480ed0f4bf2b1edf3;p=quix0rs-gnu-social.git bug in userbyid darcs-hash:20080711042022-84dde-a29b769e1c032cb1b8bf13a2e6c69671169c032f.gz --- diff --git a/actions/userbyid.php b/actions/userbyid.php index 501e165ab0..da61c7b6e6 100644 --- a/actions/userbyid.php +++ b/actions/userbyid.php @@ -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',