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
pull/2/head
Christian Boltz 10 years ago
parent 25356ede71
commit 3f451371e3

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

Loading…
Cancel
Save