Hiding LP category only for the first one. see BT#7558

1.10.x
Julio Montoya 11 years ago
parent 81e4e34b3c
commit 14b028f153
  1. 5
      main/newscorm/lp_list.php

@ -126,10 +126,11 @@ $total = count($categories);
$counterCategories = 1;
foreach ($categories as $item) {
$list = new LearnpathList(api_get_user_id(), null, null, null, false, $item->getId());
$categoryId = $item->getId();
$list = new LearnpathList(api_get_user_id(), null, null, null, false, $categoryId);
$flat_list = $list->get_flat_list();
// Hiding categories with out LPs.
if (empty($flat_list)) {
if (empty($flat_list) && $categoryId == 0) {
continue;
}

Loading…
Cancel
Save