mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Portal: service type mapping can be an empty string
SVN:trunk[2963]
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user