summaryrefslogtreecommitdiff
path: root/lib/profilelist.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-06-12 19:55:41 +0800
committerJeffery To <jeffery.to@gmail.com>2009-06-12 19:55:41 +0800
commitcfea2b0c4e21bc61ec250c8f34ec8c9aa6536e83 (patch)
treeb7a9d9d90773a9edde8fb5791b45ff34cdbda195 /lib/profilelist.php
parent1b76df4b6aa4d5f092fa4f7188a9e853443452e1 (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.php2
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');