浏览代码

Minor - Fix e_notice - refs BT#15591

Angel Fernando Quiroz Campos 5 年之前
父节点
当前提交
0ab84b0b0b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main/exercise/exercise_submit.php

+ 2 - 2
main/exercise/exercise_submit.php

@@ -104,8 +104,8 @@ $logInfo = [
     'tool' => TOOL_QUIZ,
     'tool_id' => $exerciseId,
     '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);