mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01: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']
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user