From 30c5684c535677492f35f6d07adbb3867c41cbd8 Mon Sep 17 00:00:00 2001 From: Junichi Satoh Date: Sun, 2 Oct 2016 09:56:50 +0900 Subject: [PATCH] Fixed warning in header.php. (cherry picked from commit 096f79056f743341313f1d54526e476c9a25926b) --- pandora_console/general/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 0b6f3d38ca..b3a6ad48ed 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -188,7 +188,7 @@ config_check(); $_GET['refr'] = null; } - if (array_search($_GET['sec2'], $config['autorefresh_white_list']) !== false) { + if ($config['autorefresh_white_list'] !== null && array_search($_GET['sec2'], $config['autorefresh_white_list']) !== false) { $autorefresh_img = html_print_image("images/header_refresh.png", true, array("class" => 'bot', "alt" => 'lightning', 'title' => __('Configure autorefresh'))); if ($_GET['refr']) {