Merge pull request #12725 from ptibogxiv/patch-289
fix php error message
This commit is contained in:
commit
1a76fd2e80
@ -677,7 +677,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
|
|||||||
$globalStatsKey = $groupElement['globalStatsKey'];
|
$globalStatsKey = $groupElement['globalStatsKey'];
|
||||||
$groupElement['globalStats'] = array();
|
$groupElement['globalStats'] = array();
|
||||||
|
|
||||||
if (in_array($globalStatsKey, $keys))
|
if (is_array($keys) && in_array($globalStatsKey, $keys))
|
||||||
{
|
{
|
||||||
// get key index of stats used in $includes, $classes, $keys, $icons, $titres, $links
|
// get key index of stats used in $includes, $classes, $keys, $icons, $titres, $links
|
||||||
$keyIndex = array_search($globalStatsKey, $keys);
|
$keyIndex = array_search($globalStatsKey, $keys);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user