From 9e39013d4c4fb29666b46c57eb6cbeeeffc25be5 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Tue, 29 Oct 2013 11:00:31 +0000 Subject: [PATCH] Portal: service type mapping can be an empty string SVN:trunk[2963] --- portal/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()))