fixes #647, use the constant instead of hard coded table name

This commit is contained in:
plegall
2017-04-04 15:19:24 +02:00
parent df1c665e62
commit 1d5279e4a8

View File

@@ -1143,7 +1143,7 @@ function qsearch_get_categories(QExpression $expr, QResults $qsr)
SELECT
*
FROM '.CATEGORIES_TABLE.'
INNER JOIN piwigo_user_cache_categories ON id = cat_id and user_id = '.$user['id'].'
INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id = cat_id and user_id = '.$user['id'].'
WHERE ('. implode("\n OR ",$clauses) .')';
$result = pwg_query($query);
while ($cat = pwg_db_fetch_assoc($result))