diff --git a/portal/index.php b/portal/index.php index e1bc8f353..2c24778b2 100644 --- a/portal/index.php +++ b/portal/index.php @@ -100,7 +100,7 @@ function ComputeClass($iSubSvcId) */ function RestrictSubcategories(&$oSearch) { - $aMapping = json_decode(PORTAL_TYPE_TO_CLASS, true); + $aMapping = (PORTAL_TYPE_TO_CLASS == '') ? array() : json_decode(PORTAL_TYPE_TO_CLASS, true); foreach($aMapping as $sTicketType => $sClass) { if (!in_array($sClass, GetTicketClasses()))