if (!empty($_REQUEST['item_id'])) { $learnPath->set_current_item($_REQUEST['item_id']); $learnPath->updateCurrentLpFromSession(); } require 'lp_view.php'; } break; case 'save': if ($debug > 0) { error_log('New LP - save action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for save', 0); require 'lp_list.php'; } else { $learnPath->save_item(); $learnPath->updateCurrentLpFromSession(); require 'lp_save.php'; } break; case 'stats': if ($debug > 0) { error_log('New LP - stats action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for stats', 0); require 'lp_list.php'; } else { $learnPath->save_current(); $learnPath->save_last(); $learnPath->updateCurrentLpFromSession();