mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
MailboxHandler.php:
- validate_new_id(): store error message in $this->errormsg[$this->id_field] instead of $this->errormsg[] - beforestore(): use first array key instead of [0] to match the change in validate_new_id() git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1461 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
ea7036ae62
commit
c53400ec5f
@ -121,7 +121,7 @@ class MailboxHandler extends PFAHandler {
|
||||
|
||||
protected function validate_new_id() {
|
||||
if ($this->id == '') {
|
||||
$this->errormsg[] = Lang::read('pCreate_mailbox_username_text_error1');
|
||||
$this->errormsg[$this->id_field] = Lang::read('pCreate_mailbox_username_text_error1');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -196,7 +196,8 @@ class MailboxHandler extends PFAHandler {
|
||||
$ah->calledBy('MailboxHandler');
|
||||
|
||||
if ( !$ah->init($this->id) ) {
|
||||
$this->errormsg[] = $ah->errormsg[0];
|
||||
$arraykeys = array_keys($ah->errormsg);
|
||||
$this->errormsg[] = $ah->errormsg[$arraykeys[0]]; # TODO: implement this as PFAHandler->firstErrormsg()
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user