summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/peoplesearchresults.php2
-rw-r--r--lib/profilelist.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/peoplesearchresults.php b/lib/peoplesearchresults.php
index d3f840852..9cd162baa 100644
--- a/lib/peoplesearchresults.php
+++ b/lib/peoplesearchresults.php
@@ -56,7 +56,7 @@ class PeopleSearchResults extends ProfileList
function __construct($profile, $terms, $action)
{
- parent::__construct($profile, $terms, $action);
+ parent::__construct($profile, null, $action);
$this->terms = array_map('preg_quote',
array_map('htmlspecialchars', $terms));
$this->pattern = '/('.implode('|',$terms).')/i';
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');