From 7e1efe61bb98469f5702061d1e02665245639e2f Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 4 Oct 2007 22:38:21 +0200 Subject: [PATCH] Should avoid php errors when auth fails on xnet Signed-off-by: Florent Bruneau --- include/xnet/session.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/xnet/session.inc.php b/include/xnet/session.inc.php index 29a519e..175a031 100644 --- a/include/xnet/session.inc.php +++ b/include/xnet/session.inc.php @@ -109,6 +109,10 @@ class XnetSession global $globals, $page; if (md5('1'.S::v('challenge').$globals->xnet->secret.Get::i('uid').'1') != Get::v('auth')) { + if (!$page) { + require_once 'xnet.inc.php'; + new_skinned_page('platal/index.tpl'); + } $page->kill("Erreur d'authentification avec polytechnique.org !"); } -- 2.1.4