From 9b5e6de1f4f897b7d83cd76480ed0f4bf2b1edf3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 11 Jul 2008 00:20:22 -0400 Subject: [PATCH] bug in userbyid darcs-hash:20080711042022-84dde-a29b769e1c032cb1b8bf13a2e6c69671169c032f.gz --- actions/userbyid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- 2.39.5