fixes ##2195 if conf['rate'] show rating filter

only allow rating filter if gallery uses rating
update api, mcs.js and tpl to check if rating
search_filters.inc.php update indentation due to extra if
This commit is contained in:
HWFord
2024-09-16 10:21:49 +02:00
parent e66de5a513
commit 921f679bca
5 changed files with 72 additions and 46 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ SELECT
//
// ratings
//
if (!empty($search['fields']['ratings']))
if ($conf['rate'] and !empty($search['fields']['ratings']))
{
$has_filters_filled = true;