mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:39:07 +01:00
fix PHP 8.0 error "array_key_exists(): Argument #2 ($array) must be of type array, null given" when creating a category
This commit is contained in:
parent
542192ce6e
commit
088dab168c
@ -87,7 +87,7 @@ class admin_cmd_category extends admin_cmd
|
||||
unset($set['old_parent'], $set['base_url'], $set['last_mod'], $set['all_cats'], $set['no_private']);
|
||||
foreach($set as $key => $value)
|
||||
{
|
||||
if(array_key_exists($key, $old) && $old[$key] == $value)
|
||||
if ($old && array_key_exists($key, $old) && $old[$key] == $value)
|
||||
{
|
||||
unset($set[$key]);
|
||||
unset($old[$key]);
|
||||
|
Loading…
Reference in New Issue
Block a user