Selaa lähdekoodia

Minor - format code + adding exit after a header call.

Julio Montoya 11 vuotta sitten
vanhempi
commit
a58bd1c7e4
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 2 2
      main/exercice/exercise_submit.php
  2. 1 0
      main/newscorm/lp_content.php

+ 2 - 2
main/exercice/exercise_submit.php

@@ -326,14 +326,14 @@ if ($time_control) {
     if ($debug) { error_log("7 No time control"); };
 }
 
-// Get time left for exipiring time
+// Get time left for expiring time
 $time_left = api_strtotime($clock_expired_time,'UTC') - time();
 
 /*
  * The time control feature is enable here - this feature is enable for a jquery plugin called epiclock
  * for more details of how it works see this link : http://eric.garside.name/docs.html?p=epiclock
  */
-if ($time_control) { //Sends the exercice form when the expired time is finished
+if ($time_control) { //Sends the exercise form when the expired time is finished
 	$htmlHeadXtra[] = $objExercise->show_time_control_js($time_left);
 }
 

+ 1 - 0
main/newscorm/lp_content.php

@@ -22,6 +22,7 @@ if (empty($lp_controller_touched)) {
         error_log('New lp - In lp_content.php - Redirecting to lp_controller', 0);
     }
     header('location: lp_controller.php?action=content&lp_id='.Security::remove_XSS($_REQUEST['lp_id']).'&item_id='.Security::remove_XSS($_REQUEST['item_id']));
+    exit;
 }
 $_SESSION['oLP']->error = '';
 $lp_type = $_SESSION['oLP']->get_type();