mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +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
d915b25bba
commit
7c4914d8db
@ -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