From: Evan Prodromou Date: Thu, 20 Nov 2008 10:52:23 +0000 (-0500) Subject: correct constructor for PeopleSearchResults X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d94e5f57acd1954460c37812279b3c2e2eb830da;p=quix0rs-gnu-social.git correct constructor for PeopleSearchResults darcs-hash:20081120105223-84dde-d4b44f20e9bd0e3ce96e6834e04ad05cb451ba6a.gz --- diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index 985d5fae53..6b03169a02 100644 --- a/actions/peoplesearch.php +++ b/actions/peoplesearch.php @@ -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'; }