aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-06-10 21:07:22 +0000
committernikrou <nikrou@piwigo.org>2010-06-10 21:07:22 +0000
commitce187863e8585421cf75e5b4854eeb4a9e0678c5 (patch)
tree110fb763c9930d3d2dcb5610ec6b8d19128a6fb6 /include/functions_search.inc.php
parent09e7d9c49887aced339e715ab6bd173d30fd9968 (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. git-svn-id: http://piwigo.org/svn/trunk@6518 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;