summaryrefslogtreecommitdiff
path: root/actions/userbyid.php
diff options
context:
space:
mode:
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',