diff --git a/main/inc/ajax/agenda.ajax.php b/main/inc/ajax/agenda.ajax.php index 7af342ea9b..4b21d8ecd2 100755 --- a/main/inc/ajax/agenda.ajax.php +++ b/main/inc/ajax/agenda.ajax.php @@ -1,4 +1,5 @@ TOOL_CALENDAR_EVENT, - 'tool_id' => 0, - 'tool_id_detail' => 0, 'action' => $action, - 'info' => '', ]; Event::registerLog($logInfo); @@ -51,9 +49,9 @@ switch ($action) { $content, $userToSend, $add_as_announcement, - null, //$parentEventId = null, - [], //$attachmentArray = array(), - null, //$attachmentComment = null, + null, + [], + null, $comment ); break; @@ -111,7 +109,7 @@ switch ($action) { $start = isset($_REQUEST['start']) ? api_strtotime($_REQUEST['start']) : null; $end = isset($_REQUEST['end']) ? api_strtotime($_REQUEST['end']) : null; - if ($type == 'personal' && !empty($sessionId)) { + if ($type === 'personal' && !empty($sessionId)) { $agenda->setSessionId($sessionId); } @@ -126,7 +124,7 @@ switch ($action) { echo $events; break; case 'get_user_agenda': - //Used in the admin user list + // Used in the admin user list. api_protect_admin_script(); if (api_is_allowed_to_edit(null, true)) { diff --git a/main/ticket/settings.php b/main/ticket/settings.php index 05a03540e3..3368019711 100644 --- a/main/ticket/settings.php +++ b/main/ticket/settings.php @@ -1,4 +1,5 @@