From: Pierre Habouzit (MadCoder Date: Fri, 3 Dec 2004 11:23:20 +0000 (+0000) Subject: minor X-Git-Tag: xorg/old~717 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=01d735410d24cc300b2fc4b3743e352d26ca5255;p=platal.git minor git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-25 --- 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");