From d94e5f57acd1954460c37812279b3c2e2eb830da Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 20 Nov 2008 05:52:23 -0500 Subject: correct constructor for PeopleSearchResults darcs-hash:20081120105223-84dde-d4b44f20e9bd0e3ce96e6834e04ad05cb451ba6a.gz --- actions/peoplesearch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/peoplesearch.php') diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index 985d5fae5..6b03169a0 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'; } -- cgit v1.2.3-54-g00ecf