Portal: service type mapping can be an empty string

SVN:trunk[2963]
This commit is contained in:
Romain Quetiez
2013-10-29 11:00:31 +00:00
parent 5d02db5440
commit 9e39013d4c

View File

@@ -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()))