diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 5df968ea9b..a8ae340ba8 100755 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -1999,11 +1999,10 @@ class learnpath { // Also check the time availability of the learning path if ($is_visible) { $now = str_replace($find,'',api_get_local_time()); - if ($now<$from or $now>$to) { + if ((($row['publicated_on']!='0000-00-00 00:00:00') && ($now<$from)) or (($row['expired_on']!='0000-00-00 00:00:00') && ($now>$to))) { $is_visible = false; } } - return $is_visible; } return false; diff --git a/main/newscorm/lp_list.php b/main/newscorm/lp_list.php index fc7a07afde..cff3d28ddf 100755 --- a/main/newscorm/lp_list.php +++ b/main/newscorm/lp_list.php @@ -271,7 +271,7 @@ if (is_array($flat_list)) { $dsp_desc = '