diff --git a/gulliver/system/class.headPublisher.php b/gulliver/system/class.headPublisher.php index afdc8c7cb..156fa6aab 100644 --- a/gulliver/system/class.headPublisher.php +++ b/gulliver/system/class.headPublisher.php @@ -754,8 +754,10 @@ class headPublisher $sjson = $oServerConf->getProperty($keyState); if ($sjson !== "") { $json = G::json_decode($sjson); - foreach ($json as $key => $value) { - $views[$key] = $value; + if ((is_array($json) || is_object($json)) && sizeof($json)){ + foreach ($json as $key => $value) { + $views[$key] = $value; + } } } $httpCookies = explode("; ", $_SERVER['HTTP_COOKIE']);