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

re-format

This commit is contained in:
David Goodwin 2019-02-27 14:40:22 +00:00
parent 7ed57a0cda
commit 045a19ae33
2 changed files with 3 additions and 4 deletions

View File

@ -219,7 +219,7 @@ class MailboxHandler extends PFAHandler {
protected function beforestore() {
if (isset($this->values['quota']) && $this->values['quota'] != -1) {
$multiplier = Config::read_string('quota_multiplier');
if($multiplier == 0) { // or empty string, or null, or false...
if ($multiplier == 0) { // or empty string, or null, or false...
$multiplier = 1;
}
$this->values['quota'] = $this->values['quota'] * $multiplier; # convert quota from MB to bytes
@ -257,7 +257,7 @@ class MailboxHandler extends PFAHandler {
if (Config::bool('password_expiration')) {
if(!empty($this->values['password']) && !empty($this->values['password2']) && $this->values['password'] == $this->values['password2']) {
if (!empty($this->values['password']) && !empty($this->values['password2']) && $this->values['password'] == $this->values['password2']) {
$domain_dirty = $this->domain_from_id();
$domain = trim($domain_dirty, "`'"); // naive assumption it is ' escaping.
$password_expiration_value = (int)get_password_expiration_value($domain);

View File

@ -559,8 +559,7 @@ abstract class PFAHandler {
} else {
$result = db_update($this->db_table, $this->id_field, $this->id, $db_values, array('created', 'modified'), true);
}
}
catch(PDOException $e) {
} catch (PDOException $e) {
$this->errormsg[] = Config::lang_f($this->msg['store_error'], $this->label);
return false;
}