aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-06-10 21:08:34 +0000
committernikrou <nikrou@piwigo.org>2010-06-10 21:08:34 +0000
commit9bbddd0cc4ed4fc732d8a7df62a5e0693b2a3fb1 (patch)
tree1416df423e09865f13ea5bf561a6c265e8307e11 /include/functions_search.inc.php
parent406b9bfcd9d816f8e2b451ff30b871de29dc5377 (diff)
Bug 1730 fixed : search doesn't work when database engine is not mysql
For posgresql and sqlite date must allways use day and month with two diggits. merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6519 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_search.inc.php')
-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 8f6af51dd..425de3e6c 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 DISTINCT(id)
+SELECT id
FROM '.IMAGES_TABLE.' i
INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
WHERE '.$search_clause;