mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user