mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
fix PHP TypeError: Argument #2 ($array) must be of type array, null given
This commit is contained in:
parent
0386a463ec
commit
51ff3f185d
@ -135,8 +135,8 @@ class Nextmatch extends Etemplate\Widget
|
||||
list($app) = explode('.', $this->attrs['template']);
|
||||
}
|
||||
|
||||
// Check for sort preference. We only apply this on first load so it can be changed
|
||||
if(array_key_exists($this->attrs['template'] . "_sort", $GLOBALS['egw_info']['user']['preferences'][$app]))
|
||||
// Check for sort preference. We only apply this on first load, so it can be changed
|
||||
if(array_key_exists($this->attrs['template'] . "_sort", $GLOBALS['egw_info']['user']['preferences'][$app] ?? []))
|
||||
{
|
||||
$send_value['sort'] = $GLOBALS['egw_info']['user']['preferences'][$app][$this->attrs['template'] . "_sort"];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user