mirror of https://github.com/MISP/MISP
fix: incorrect check for alertemail and publishSightings event commands
parent
120a9e7143
commit
19af2d8d82
|
@ -236,7 +236,7 @@ class EventShell extends AppShell
|
||||||
public function alertemail()
|
public function alertemail()
|
||||||
{
|
{
|
||||||
$this->ConfigLoad->execute();
|
$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);
|
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()
|
public function publish_sightings()
|
||||||
{
|
{
|
||||||
$this->ConfigLoad->execute();
|
$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);
|
die('Usage: ' . $this->Server->command_line_functions['event_management_tasks']['data']['Publish sightings'] . PHP_EOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue