]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct constructor for PeopleSearchResults
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 10:52:23 +0000 (05:52 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 10:52:23 +0000 (05:52 -0500)
darcs-hash:20081120105223-84dde-d4b44f20e9bd0e3ce96e6834e04ad05cb451ba6a.gz

actions/peoplesearch.php

index 985d5fae53302a6150b04a00b1e3567ed0c04ae1..6b03169a0203a3091579e5c5390beafa095e523c 100644 (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';
        }