mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 20:59:59 +03:00
parent
06952b2d5a
commit
a1fc05c586
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ SELECT group_id, cat_id
|
|||
// filter by group and user
|
||||
foreach ($perms as $cat_id => &$cat)
|
||||
{
|
||||
if (isset($filters['group_id']))
|
||||
if (isset($params['group_id']))
|
||||
{
|
||||
if (empty($cat['groups']) or count(array_intersect($cat['groups'], $params['group_id'])) == 0)
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ SELECT group_id, cat_id
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (isset($filters['user_id']))
|
||||
if (isset($params['user_id']))
|
||||
{
|
||||
if (
|
||||
(empty($cat['users_indirect']) or count(array_intersect($cat['users_indirect'], $params['user_id'])) == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue