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
This commit is contained in:
nikrou
2010-06-10 21:07:22 +00:00
parent 09e7d9c498
commit ce187863e8
2 changed files with 13 additions and 17 deletions
+1 -1
View File
@@ -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;