summaryrefslogtreecommitdiff
path: root/actions/userbyid.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-11 00:20:22 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-11 00:20:22 -0400
commit9b5e6de1f4f897b7d83cd76480ed0f4bf2b1edf3 (patch)
treefe6257213307a14c5046b16411fe7a60e256ef3f /actions/userbyid.php
parentf6bdb42d35a22dab09cc3cf52a0621ea685630ce (diff)
bug in userbyid
darcs-hash:20080711042022-84dde-a29b769e1c032cb1b8bf13a2e6c69671169c032f.gz
Diffstat (limited to 'actions/userbyid.php')
-rw-r--r--actions/userbyid.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/userbyid.php b/actions/userbyid.php
index 501e165ab..da61c7b6e 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',