diff options
author | Jeffery To <jeffery.to@gmail.com> | 2009-06-12 19:55:41 +0800 |
---|---|---|
committer | Jeffery To <jeffery.to@gmail.com> | 2009-06-12 19:55:41 +0800 |
commit | cfea2b0c4e21bc61ec250c8f34ec8c9aa6536e83 (patch) | |
tree | b7a9d9d90773a9edde8fb5791b45ff34cdbda195 /lib/profilelist.php | |
parent | 1b76df4b6aa4d5f092fa4f7188a9e853443452e1 (diff) |
Fix "Trying to get property of non-object" errors when accessing the people search results page
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r-- | lib/profilelist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php index a4cc23555..c22da00cb 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -208,7 +208,7 @@ class ProfileList extends Widget } $this->out->elementEnd('li'); $this->out->elementStart('li', 'entity_block'); - if ($user->id == $this->owner->id) { + if ($this->owner && $user->id == $this->owner->id) { $this->showBlockForm(); } $this->out->elementEnd('li'); |