summaryrefslogtreecommitdiff
path: root/actions/peoplesearch.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/peoplesearch.php')
-rw-r--r--actions/peoplesearch.php3
1 files changed, 2 insertions, 1 deletions
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';
}