mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
related to #1757 fix php8 warning when going on album edit after creating it
This commit is contained in:
@@ -2374,7 +2374,7 @@ function cat_admin_access($category_id)
|
|||||||
|
|
||||||
// $filter['visible_categories'] and $filter['visible_images']
|
// $filter['visible_categories'] and $filter['visible_images']
|
||||||
// are not used because it's not necessary (filter <> restriction)
|
// are not used because it's not necessary (filter <> restriction)
|
||||||
if (in_array($category_id, explode(',', $user['forbidden_categories'])))
|
if (in_array($category_id, @explode(',', $user['forbidden_categories'])))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user