fixing problem with array representation in search.php