mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
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
|
||||
unset($this->definitions[array_search($key,$this->definitions)]);
|
||||
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