mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix PHP8.0 (TypeError): explode(): Argument #2 ($string) must be of type string, array given
This commit is contained in:
parent
5227425671
commit
fd3b61b6af
@ -996,7 +996,7 @@ abstract class Ajax extends Api\Framework
|
||||
{
|
||||
$open_tabs = $GLOBALS['egw_info']['user']['preferences']['common']['open_tabs'];
|
||||
}
|
||||
$open_tabs = $open_tabs ? explode(',',$open_tabs) : array();
|
||||
$open_tabs = $open_tabs && is_string($open_tabs) ? explode(',',$open_tabs) : (array)$open_tabs;
|
||||
if ($active_tab && !in_array($active_tab,$open_tabs))
|
||||
{
|
||||
$open_tabs[] = $active_tab;
|
||||
|
Loading…
Reference in New Issue
Block a user