From 19af2d8d825cc5e0224c5eed6ebee8da0c088717 Mon Sep 17 00:00:00 2001 From: Luciano Righetti Date: Fri, 24 Sep 2021 16:04:04 +0200 Subject: [PATCH] fix: incorrect check for alertemail and publishSightings event commands --- app/Console/Command/EventShell.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Command/EventShell.php b/app/Console/Command/EventShell.php index 59f486b2b..dc34e1a8c 100644 --- a/app/Console/Command/EventShell.php +++ b/app/Console/Command/EventShell.php @@ -236,7 +236,7 @@ class EventShell extends AppShell public function alertemail() { $this->ConfigLoad->execute(); - if (empty($this->args[0]) || empty($this->args[1]) || empty($this->args[2]) || empty($this->args[3])) { + if (empty($this->args[0]) || empty($this->args[1]) || empty($this->args[2])) { die('Usage: ' . $this->Server->command_line_functions['event_management_tasks']['data']['Alert email'] . PHP_EOL); } @@ -376,7 +376,7 @@ class EventShell extends AppShell public function publish_sightings() { $this->ConfigLoad->execute(); - if (empty($this->args[0]) || empty($this->args[1]) || empty($this->args[2]) || empty($this->args[3])) { + if (empty($this->args[0]) || empty($this->args[2]) || empty($this->args[3])) { die('Usage: ' . $this->Server->command_line_functions['event_management_tasks']['data']['Publish sightings'] . PHP_EOL); }