Commit b32a752d authored by Leigh Stoller's avatar Leigh Stoller

Another little bug fix ...

parent 18cf8b01
......@@ -40,7 +40,7 @@ class Project
# Try lookup by plain uid.
$foo = Project::LookupByPid($pid_idx);
if (! $foo->IsValid())
if (!$foo || !$foo->IsValid())
return null;
# Return here, in case I add a cache and forget to do this.
......
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