Commit 18cf8b01 authored by Leigh Stoller's avatar Leigh Stoller

Another little bug fix ...

parent 0d733be9
......@@ -59,7 +59,7 @@ class User
# Try lookup by plain uid.
$foo =& User::LookupByUid($uid_idx);
if (! $foo->IsValid())
if (!$foo || !$foo->IsValid())
return null;
# Already in the cache from LookupByUid() so just return it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment