Fix missing breaks in switch-case for stop_previous_item() and rl_get_resource_link_for_learnpath()

pull/2487/head
Yannick Warnier 9 years ago
parent 8a780259c0
commit b067dbd8cc
  1. 2
      main/lp/learnpath.class.php

@ -4993,6 +4993,7 @@ class learnpath
error_log('New LP - In learnpath::stop_previous_item() - Item is an AU, saving is managed by AICC signals', 0); error_log('New LP - In learnpath::stop_previous_item() - Item is an AU, saving is managed by AICC signals', 0);
} }
} }
break;
case '2': case '2':
if ($this->items[$this->last]->get_type() != 'sco') { if ($this->items[$this->last]->get_type() != 'sco') {
if ($this->debug > 2) { if ($this->debug > 2) {
@ -11542,6 +11543,7 @@ EOD;
switch ($type) { switch ($type) {
case 'dir': case 'dir':
$link .= $main_dir_path . 'lp/blank.php'; $link .= $main_dir_path . 'lp/blank.php';
break;
case TOOL_CALENDAR_EVENT: case TOOL_CALENDAR_EVENT:
$link .= $main_dir_path.'calendar/agenda.php?origin='.$origin.'&agenda_id='.$id; $link .= $main_dir_path.'calendar/agenda.php?origin='.$origin.'&agenda_id='.$id;
break; break;

Loading…
Cancel
Save