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';
}
$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');