Fixed E_NOTICE - GroupList expects an owner object in the constructor, not an array of search terms

This commit is contained in:
Jeffery To 2009-10-07 16:18:05 +08:00
parent aeca8807db
commit 87f5c53dd0
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class GroupSearchResults extends GroupList
function __construct($user_group, $terms, $action)
{
parent::__construct($user_group, $terms, $action);
parent::__construct($user_group, null, $action);
$this->terms = array_map('preg_quote',
array_map('htmlspecialchars', $terms));
$this->pattern = '/('.implode('|',$terms).')/i';