Fixes the "no redirection / bad MXs" warnings for administrators.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Fri, 4 Apr 2008 08:46:34 +0000 (10:46 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Fri, 4 Apr 2008 08:46:34 +0000 (10:46 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
include/emails.inc.php
include/xorg.misc.inc.php

index 555946d..bcf0cc4 100644 (file)
@@ -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:
index 0f5bae9..b025e7a 100644 (file)
@@ -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)