From 7560e44586cd204112ad2520c7a35912a17b26e6 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 6 Oct 2008 13:46:41 +0000 Subject: [PATCH] =?UTF-8?q?-=20modify.php=20:=20Pas=20de=20redirect=20lors?= =?UTF-8?q?que=20le=20debug=20est=20activ=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/modify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/modify.php b/trunk/modify.php index 23be94b4..092e67a3 100644 --- a/trunk/modify.php +++ b/trunk/modify.php @@ -54,7 +54,9 @@ if($LSsession -> startLSsession()) { // MàJ des données de l'objet LDAP if ($object -> updateData('modify')) { $GLOBALS['LSsession'] -> addInfo(_("L'objet a bien été modifié.")); - $GLOBALS['LSsession'] -> redirect('view.php?LSobject='.$LSobject.'&dn='.$object -> getDn()); + if (!$GLOBALS['LSdebug']['active']) { + $GLOBALS['LSsession'] -> redirect('view.php?LSobject='.$LSobject.'&dn='.$object -> getDn()); + } } }