0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

fix formatting

This commit is contained in:
David Goodwin 2019-09-15 11:42:21 +01:00
parent f8713651cc
commit f7c7e35b34
5 changed files with 5 additions and 6 deletions

View File

@ -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!');
}

View File

@ -53,7 +53,7 @@ class CliDelete extends Shell {
if (!$handler->delete()) {
$this->err($handler->errormsg);
return 1;
}
}
$this->out($handler->infomsg);
return 0;
}

View File

@ -189,7 +189,7 @@ class CliEdit extends Shell {
if (!$handler->store()) {
$this->err($handler->errormsg);
return 1;
}
}
$this->out("");
$this->out($handler->infomsg);

View File

@ -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;
}

View File

@ -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;
}