From 2db062a42973035ae6e3ef7e3fff6ca468986172 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Tue, 17 Dec 2019 11:03:49 +0100 Subject: [PATCH] fix php error message check array before action in array --- htdocs/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index 3ed9eae2073..23f02ed95b3 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -677,7 +677,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) { $globalStatsKey = $groupElement['globalStatsKey']; $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 $keyIndex = array_search($globalStatsKey, $keys);