mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix PHP 8.0 TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given
This commit is contained in:
parent
d5f53af8b9
commit
057c5bf6f7
@ -597,7 +597,7 @@ class calendar_ui
|
|||||||
// App might have multiple hooks, let it specify something else
|
// App might have multiple hooks, let it specify something else
|
||||||
$app = $data['selects']['app'] ?: $app;
|
$app = $data['selects']['app'] ?: $app;
|
||||||
|
|
||||||
if(array_key_exists('sidebox_template', $data))
|
if (is_array($data) && array_key_exists('sidebox_template', $data))
|
||||||
{
|
{
|
||||||
$cont['integration'][] = ['template' => $data['sidebox_template'], 'app' => $app];
|
$cont['integration'][] = ['template' => $data['sidebox_template'], 'app' => $app];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user