correct constructor for PeopleSearchResults

darcs-hash:20081120105223-84dde-d4b44f20e9bd0e3ce96e6834e04ad05cb451ba6a.gz
This commit is contained in:
Evan Prodromou 2008-11-20 05:52:23 -05:00
parent d1361c6e27
commit d94e5f57ac

View File

@ -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';
}