{
foreach ($this->emails as &$mail) {
if ($mail->email == $email) {
+ check_redirect($this);
return $mail->cleanErrors($this->uid);
}
}
$mail->active = false;
}
}
+ check_redirect($this);
}
// function enable() {{{2
$mail->active = true;
$mail->disabled = false;
}
+ check_redirect($this);
}
}
public function get_broken_mx()
{
- $res = XDB::query("SELECT host, text
+ $res = XDB::query("SELECT host, text, state
FROM mx_watch
WHERE state != 'ok'");
if (!$res->numRows()) {
$lcl_mxs = array($domain);
}
$broken = false;
+ $state = false;
foreach ($mxs as &$mx) {
foreach ($lcl_mxs as $lcl) {
if (fnmatch($mx['host'], $lcl)) {
$broken = $mx['text'];
+ $state = $mx['state'];
break;
}
}
if ($broken) {
- $mails[] = array('mail' => $mail->email, 'text' => $broken);
+ $mails[] = array('mail' => $mail->email, 'text' => $broken, 'state' => $state);
break;
}
}