Commits

David Matthewman committed 8217778

Fixed bug where MP search was passed an array rather than
individual names.

Change-Id: Ia77e4152c620a2c6dee8e58af090b5cf9978a73a

Comments (0)

Files changed (1)

website/tablepeop.inc

         $querybits = explode(" ", $search);
         foreach ($querybits as $querybit)
         {
-            $querybits = trim($querybits);
-            if ($querybits != "")
+            $querybit = trim($querybit);
+            if ($querybit != "")
             {
                 $score_clause .= "+ (lower(constituency) = '$querybit') * 10 + 
                 (soundex(concat(first_name, ' ', last_name)) = soundex('$querybit')) * 8 +