Merged in dheeyi/processmaker/HOR-383 (pull request #3792)

HOR-383
This commit is contained in:
Julio Cesar Laura Avendaño
2016-03-04 11:48:10 -04:00

View File

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