From 4528293427935ad71dba19a6ca9f425b94ba3985 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Fri, 4 Apr 2008 10:46:34 +0200 Subject: [PATCH] Fixes the "no redirection / bad MXs" warnings for administrators. Signed-off-by: Vincent Zanotti --- include/emails.inc.php | 7 +++++++ include/xorg.misc.inc.php | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/emails.inc.php b/include/emails.inc.php index 555946d..bcf0cc4 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -599,6 +599,13 @@ class Redirect } return $emails; } + + // function get_uid() {{{2 + + public function get_uid() + { + return $this->uid; + } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: diff --git a/include/xorg.misc.inc.php b/include/xorg.misc.inc.php index 0f5bae9..b025e7a 100644 --- a/include/xorg.misc.inc.php +++ b/include/xorg.misc.inc.php @@ -315,8 +315,10 @@ function check_redirect($red = null) if (is_null($red)) { $red = new Redirect(S::v('uid')); } - $_SESSION['no_redirect'] = !$red->other_active(''); - $_SESSION['mx_failures'] = $red->get_broken_mx(); + if ($red->get_uid() == S::v('uid')) { + $_SESSION['no_redirect'] = !$red->other_active(''); + $_SESSION['mx_failures'] = $red->get_broken_mx(); + } } function send_warning_mail($title) -- 2.1.4