From 43780ae7a758ec3260750c51d531859ba9dc4357 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 11 Jan 2011 21:03:48 +0000 Subject: bug 2101: merge from trunk to 2.1 php warning/errors + broken navigation when using the advanced search form git-svn-id: http://piwigo.org/svn/branches/2.1@8612 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_search.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php index 06fa6f423..a8b005517 100644 --- a/include/functions_search.inc.php +++ b/include/functions_search.inc.php @@ -223,7 +223,7 @@ function get_regular_search_results($search, $images_where) if (!empty($search_clause)) { $query = ' -SELECT id +SELECT DISTINCT(id) FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id WHERE '.$search_clause; -- cgit v1.2.3