You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-29 22:41:11 +03:00
fix formatting
This commit is contained in:
@ -1915,7 +1915,7 @@ function db_where_clause($condition, $struct, $additional_raw_where = '', $searc
|
|||||||
} elseif (!is_array($searchmode)) {
|
} elseif (!is_array($searchmode)) {
|
||||||
throw new Exception('db_where_cond: parameter $searchmode is not an array!');
|
throw new Exception('db_where_cond: parameter $searchmode is not an array!');
|
||||||
} elseif (count($condition) == 0 && trim($additional_raw_where) == '') {
|
} elseif (count($condition) == 0 && trim($additional_raw_where) == '') {
|
||||||
throw new Exception("db_where_cond: parameter is an empty array!");
|
throw new Exception("db_where_cond: parameter is an empty array!");
|
||||||
} elseif (!is_array($struct)) {
|
} elseif (!is_array($struct)) {
|
||||||
throw new Exception('db_where_cond: parameter $struct is not an array!');
|
throw new Exception('db_where_cond: parameter $struct is not an array!');
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ class CliDelete extends Shell {
|
|||||||
if (!$handler->delete()) {
|
if (!$handler->delete()) {
|
||||||
$this->err($handler->errormsg);
|
$this->err($handler->errormsg);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
$this->out($handler->infomsg);
|
$this->out($handler->infomsg);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ class CliEdit extends Shell {
|
|||||||
if (!$handler->store()) {
|
if (!$handler->store()) {
|
||||||
$this->err($handler->errormsg);
|
$this->err($handler->errormsg);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->out("");
|
$this->out("");
|
||||||
$this->out($handler->infomsg);
|
$this->out($handler->infomsg);
|
||||||
|
@ -661,7 +661,7 @@ class MailboxHandler extends PFAHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!function_exists('imap_open')) {
|
if (!function_exists('imap_open')) {
|
||||||
trigger_error('imap_open function not present; cannot create_mailbox_subdirs');
|
trigger_error('imap_open function not present; cannot create_mailbox_subdirs');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -409,8 +409,7 @@ require_once(dirname(__FILE__) . '/../common.php');
|
|||||||
$dispatcher = new PostfixAdmin($argv);
|
$dispatcher = new PostfixAdmin($argv);
|
||||||
try {
|
try {
|
||||||
$retval = $dispatcher->dispatch();
|
$retval = $dispatcher->dispatch();
|
||||||
}
|
} catch (Exception $e) {
|
||||||
catch(Exception $e) {
|
|
||||||
$dispatcher->stderr("Execution Exception: " . $e->getMessage());
|
$dispatcher->stderr("Execution Exception: " . $e->getMessage());
|
||||||
$retval = 1;
|
$retval = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user