mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
[search] avoid errors when a filter returns no item
This commit is contained in:
1 parent
c94313fdc3
commit
13ea43e2ef
2 files changed
+2
-2
No files matched your search
@@ -159,7 +159,7 @@ function get_sql_search_clause($search)
|
||||
// ((field1 LIKE '%word1%' OR field2 LIKE '%word1%')
|
||||
// AND (field1 LIKE '%word2%' OR field2 LIKE '%word2%'))
|
||||
$word_clauses = array();
|
||||
$cat_ids_by_word = array();
|
||||
$cat_ids_by_word = $tag_ids_by_word = array();
|
||||
foreach ($search['fields']['allwords']['words'] as $word)
|
||||
{
|
||||
$field_clauses = array();
|
||||
|
||||
Reference in new issue
Block a user