mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
fix formatting
This commit is contained in:
parent
f8713651cc
commit
f7c7e35b34
@ -1915,7 +1915,7 @@ function db_where_clause($condition, $struct, $additional_raw_where = '', $searc
|
||||
} elseif (!is_array($searchmode)) {
|
||||
throw new Exception('db_where_cond: parameter $searchmode is not an array!');
|
||||
} 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)) {
|
||||
throw new Exception('db_where_cond: parameter $struct is not an array!');
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class CliDelete extends Shell {
|
||||
if (!$handler->delete()) {
|
||||
$this->err($handler->errormsg);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
$this->out($handler->infomsg);
|
||||
return 0;
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ class CliEdit extends Shell {
|
||||
if (!$handler->store()) {
|
||||
$this->err($handler->errormsg);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
$this->out("");
|
||||
$this->out($handler->infomsg);
|
||||
|
@ -661,7 +661,7 @@ class MailboxHandler extends PFAHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!function_exists('imap_open')) {
|
||||
if (!function_exists('imap_open')) {
|
||||
trigger_error('imap_open function not present; cannot create_mailbox_subdirs');
|
||||
return false;
|
||||
}
|
||||
|
@ -409,8 +409,7 @@ require_once(dirname(__FILE__) . '/../common.php');
|
||||
$dispatcher = new PostfixAdmin($argv);
|
||||
try {
|
||||
$retval = $dispatcher->dispatch();
|
||||
}
|
||||
catch(Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
$dispatcher->stderr("Execution Exception: " . $e->getMessage());
|
||||
$retval = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user