forked from extern/egroupware
Fix PHP 8 error: "array_search(): Argument #2 ($haystack) must be of type array, null given"
This commit is contained in:
parent
2ec9e27671
commit
c8843f88c9
@ -126,7 +126,10 @@ class importexport_definitions_bo {
|
||||
$definition = $this->read($key);
|
||||
if($definition['owner'] && $definition['owner'] == $GLOBALS['egw_info']['user']['account_id'] || $GLOBALS['egw_info']['user']['apps']['admin']) {
|
||||
// clear private cache
|
||||
if(is_array($this->definitions))
|
||||
{
|
||||
unset($this->definitions[array_search($key, $this->definitions)]);
|
||||
}
|
||||
} else {
|
||||
unset($keys[$index]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user