minor
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 3 Dec 2004 11:23:20 +0000 (11:23 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:25 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-25

htdocs/webredirect.php

index 3698f41..ccff074 100644 (file)
@@ -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',"<p class='normal'>Redirection activée vers <a href='http://"
                 .$_REQUEST['url']."'>{$_REQUEST['url']}</a></p>\n");