shells/mailbox.php / AddTask:

- move counting params into if (!empty($this->args[0])) block
  (the previous commit broke interactive mode)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1408 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent c3cc667caf
commit d136b5d466

@ -67,11 +67,12 @@ class AddTask extends Shell {
$this->__interactive();
}
if (!empty($this->args[0])) {
if (count($this->args) < 3) { # without -g, 4 parameters are needed
$this->error('Error:', 'Not enough parameters!');
}
if (!empty($this->args[0])) {
if (!empty($this->params['g'])) {
$this->__handle($this->args[0], NULL, true, $this->args[1], $this->args[2]);
} else {

Loading…
Cancel
Save