Minor - fix php warning

pull/2818/head
Julio Montoya 6 years ago
parent d7c14e8606
commit 24eab08049
  1. 2
      main/forum/index.php
  2. 5
      main/notebook/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' => '',
];

@ -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';

Loading…
Cancel
Save