Fixed warning in header.php.

This commit is contained in:
Junichi Satoh 2016-10-02 09:56:50 +09:00
parent 77a4428aa4
commit 096f79056f
1 changed files with 1 additions and 1 deletions

View File

@ -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']) {