From 01d735410d24cc300b2fc4b3743e352d26ca5255 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Fri, 3 Dec 2004 11:23:20 +0000 Subject: [PATCH] minor git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-25 --- htdocs/webredirect.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/webredirect.php b/htdocs/webredirect.php index 3698f41..ccff074 100644 --- a/htdocs/webredirect.php +++ b/htdocs/webredirect.php @@ -24,9 +24,8 @@ new_skinned_page('webredirect.tpl', AUTH_MDP); if (isset($_REQUEST['submit']) and ($_REQUEST['submit'] == "Valider" or $_REQUEST['submit'] == "Modifier") and isset($_REQUEST['url'])) { // on change la redirection (attention à http://) - $globals->db->query("update auth_user_quick set redirecturl = '{$_REQUEST['url']}'" - ." where user_id = '{$_SESSION['uid']}'"); - if (mysql_errno($conn) == 0) { + $globals->db->query("update auth_user_quick set redirecturl = '{$_REQUEST['url']}' where user_id = '{$_SESSION['uid']}'"); + if (mysql_errno() == 0) { $_SESSION['log']->log("carva_add","http://".$_REQUEST['url']); $page->assign('message',"

Redirection activée vers {$_REQUEST['url']}

\n"); -- 2.1.4