If empty don't show title

pull/3063/head
Julio 8 years ago
parent e769334db6
commit e9c8169f75
  1. 5
      main/inc/lib/userportal.lib.php

@ -1853,7 +1853,10 @@ class IndexManager
if ($viewGridCourses) {
// ofaj
$sessions_with_no_category = '<h4>'. get_lang('MyCourses').'</h4><hr />';
$sessions_with_no_category = '';
if (!empty($listSession)) {
$sessions_with_no_category .= '<h4>'. get_lang('MyCourses').'</h4><hr />';
}
$sessions_with_no_category .= $this->tpl->fetch(
$this->tpl->get_template('/user_portal/grid_session.tpl')
);

Loading…
Cancel
Save