Jelajahi Sumber

Minor - Fix e_notice - refs BT#15591

Angel Fernando Quiroz Campos 5 tahun lalu
induk
melakukan
0ab84b0b0b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      main/exercise/exercise_submit.php

+ 2 - 2
main/exercise/exercise_submit.php

@@ -104,8 +104,8 @@ $logInfo = [
     'tool' => TOOL_QUIZ,
     'tool' => TOOL_QUIZ,
     'tool_id' => $exerciseId,
     'tool_id' => $exerciseId,
     'tool_id_detail' => 0,
     'tool_id_detail' => 0,
-    'action' => ((int) $_REQUEST['learnpath_id'] > 0) ? 'learnpath_id' : '',
-    'action_details' => ((int) $_REQUEST['learnpath_id'] > 0) ? (int) $_REQUEST['learnpath_id'] : '',
+    'action' => $learnpath_id,
+    'action_details' => $learnpath_id,
 ];
 ];
 Event::registerLog($logInfo);
 Event::registerLog($logInfo);