aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-01-11 21:02:52 +0000
committerrvelices <rv-github@modusoptimus.com>2011-01-11 21:02:52 +0000
commit4c9c38a9f1894d8466954f8126adc244b0dcb9fa (patch)
treed35c861552ef24afd8dba04cd3cd254ccbd4fdd8 /include
parentbbea0cfda5dcf9ed65e58c3462dc492c5f7fc433 (diff)
bug 2101: php warning/errors + broken navigation when using the advanced search form
git-svn-id: http://piwigo.org/svn/trunk@8611 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_search.inc.php2
1 files changed, 1 insertions, 1 deletions
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;