You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +03:00
PFAHandler:
- set(): if errormsg is set for a field, assume it's invalid (even if the validator functions did not (or forgot to) return False) In theory this should never happen, but it's a nice safety net against programming errors in validator functions that don't have an explicit return False; git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1768 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -422,6 +422,8 @@ abstract class PFAHandler {
|
||||
if (!$this->{$func}($key, $values[$key])) $valid = false;
|
||||
}
|
||||
|
||||
if (isset($this->errormsg[$key]) && $this->errormsg[$key] != '') $valid = false;
|
||||
|
||||
if ($valid) {
|
||||
$this->values[$key] = $values[$key];
|
||||
}
|
||||
|
Reference in New Issue
Block a user