You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-03 17:02:30 +03:00
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
This commit is contained in:
@@ -67,11 +67,12 @@ class AddTask extends Shell {
|
||||
$this->__interactive();
|
||||
}
|
||||
|
||||
if (count($this->args) < 3) { # without -g, 4 parameters are needed
|
||||
$this->error('Error:', 'Not enough parameters!');
|
||||
}
|
||||
|
||||
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->params['g'])) {
|
||||
$this->__handle($this->args[0], NULL, true, $this->args[1], $this->args[2]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user