|
|
@ -12454,21 +12454,21 @@ EOD; |
|
|
|
$cats = [get_lang('SelectACategory')]; |
|
|
|
$cats = [get_lang('SelectACategory')]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$checkSession = false; |
|
|
|
/*$checkSession = false; |
|
|
|
$sessionId = api_get_session_id(); |
|
|
|
$sessionId = api_get_session_id(); |
|
|
|
if (api_get_configuration_value('allow_session_lp_category')) { |
|
|
|
if (api_get_configuration_value('allow_session_lp_category')) { |
|
|
|
$checkSession = true; |
|
|
|
$checkSession = true; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($items)) { |
|
|
|
if (!empty($items)) { |
|
|
|
foreach ($items as $cat) { |
|
|
|
foreach ($items as $cat) { |
|
|
|
$categoryId = $cat->getId(); |
|
|
|
$categoryId = $cat->getId(); |
|
|
|
if ($checkSession) { |
|
|
|
/*if ($checkSession) { |
|
|
|
$inSession = self::getCategorySessionId($categoryId); |
|
|
|
$inSession = self::getCategorySessionId($categoryId); |
|
|
|
if ($inSession != $sessionId) { |
|
|
|
if ($inSession != $sessionId) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
$cats[$categoryId] = $cat->getName(); |
|
|
|
$cats[$categoryId] = $cat->getName(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|