diff --git a/php/helpers/search.php b/php/helpers/search.php index f7df5db..d1f8908 100755 --- a/php/helpers/search.php +++ b/php/helpers/search.php @@ -29,6 +29,11 @@ function search($term) { while($photo = $result->fetch_assoc()) { $photo = Photo::prepareData($photo); + + // for operations in the search view + $photo['nextPhoto'] = ''; + $photo['previousPhoto'] = ''; + $return['photos'][$photo['id']] = $photo; }