correct constructor for PeopleSearchResults
darcs-hash:20081120105223-84dde-d4b44f20e9bd0e3ce96e6834e04ad05cb451ba6a.gz
This commit is contained in:
parent
d1361c6e27
commit
d94e5f57ac
|
@ -75,7 +75,8 @@ class PeopleSearchResults extends ProfileList {
|
|||
|
||||
function __construct($profile, $terms) {
|
||||
parent::__construct($profile);
|
||||
$this->terms = array_map('preg_quote', array_map('htmlspecialchars', $this->terms));
|
||||
$this->terms = array_map('preg_quote',
|
||||
array_map('htmlspecialchars', $terms));
|
||||
$this->pattern = '/('.implode('|',$terms).')/i';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user