bug in userbyid

darcs-hash:20080711042022-84dde-a29b769e1c032cb1b8bf13a2e6c69671169c032f.gz
This commit is contained in:
Evan Prodromou 2008-07-11 00:20:22 -04:00
parent f6bdb42d35
commit 9b5e6de1f4

View 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',