From 3a458939c9390dd4fb2556b5cae2dd9f227805b5 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 27 Aug 2016 18:04:34 +0200 Subject: [PATCH] Fixed missing medium when searching #605 --- php/helpers/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/helpers/search.php b/php/helpers/search.php index 4b05324..f7df5db 100755 --- a/php/helpers/search.php +++ b/php/helpers/search.php @@ -21,7 +21,7 @@ function search($term) { * Photos */ - $query = Database::prepare(Database::get(), "SELECT id, title, tags, public, star, album, thumbUrl, takestamp, url FROM ? WHERE title LIKE '%?%' OR description LIKE '%?%' OR tags LIKE '%?%'", array(LYCHEE_TABLE_PHOTOS, $term, $term, $term)); + $query = Database::prepare(Database::get(), "SELECT id, title, tags, public, star, album, thumbUrl, takestamp, url, medium FROM ? WHERE title LIKE '%?%' OR description LIKE '%?%' OR tags LIKE '%?%'", array(LYCHEE_TABLE_PHOTOS, $term, $term, $term)); $result = Database::execute(Database::get(), $query, __METHOD__, __LINE__); if ($result===false) return false;