diff --git a/main/newscorm/lp_content.php b/main/newscorm/lp_content.php index 75b5ca94ea..2e8c4fc0bb 100644 --- a/main/newscorm/lp_content.php +++ b/main/newscorm/lp_content.php @@ -48,10 +48,14 @@ if ($dokeos_chapter) { } break; case 2: + $_SESSION['oLP']->stop_previous_item(); $prereq_check = $_SESSION['oLP']->prerequisites_match($lp_item_id); - if(!$prereq_check) { - $src = 'blank.php?error=prerequisites'; - } + if($prereq_check === true){ + $src = $_SESSION['oLP']->get_link('http',$lp_item_id); + $_SESSION['oLP']->start_current_item(); //starts time counter manually if asset + }else{ + $src = 'blank.php?error=prerequisites'; + } break; case 3: //save old if asset