Kaynağa Gözat

Minor - fix php warning

Julio Montoya 6 yıl önce
ebeveyn
işleme
24eab08049
2 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 1 1
      main/forum/index.php
  2. 2 3
      main/notebook/index.php

+ 1 - 1
main/forum/index.php

@@ -127,7 +127,7 @@ $logInfo = [
     'tool_id' => 0,
     'tool_id_detail' => 0,
     'action' => !empty($actions) ? $actions : 'list-category',
-    'action_details' => $_GET['content'],
+    'action_details' => isset($_GET['content']) ? $_GET['content'] : '',
     'current_id' => !empty($actions) ? (int) $_GET['id'] : 0,
     'info' => '',
 ];

+ 2 - 3
main/notebook/index.php

@@ -37,6 +37,8 @@ $tool = TOOL_NOTEBOOK;
 // Tracking
 Event::event_access_tool(TOOL_NOTEBOOK);
 
+$action = isset($_GET['action']) ? $_GET['action'] : '';
+
 $logInfo = [
     'tool' => TOOL_NOTEBOOK,
     'tool_id' => 0,
@@ -47,9 +49,6 @@ $logInfo = [
     'info' => '',
 ];
 Event::registerLog($logInfo);
-
-$action = isset($_GET['action']) ? $_GET['action'] : '';
-
 // Tool name
 if ($action === 'addnote') {
     $tool = 'NoteAddNew';