From: Pierre Habouzit (MadCoder Date: Fri, 3 Dec 2004 11:23:53 +0000 (+0000) Subject: $conn does not exists anymore X-Git-Tag: xorg/old~716 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5edb978fcbf12ef73c6672776d1c0239a7f02fcd;p=platal.git $conn does not exists anymore git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-26 --- diff --git a/htdocs/webredirect.php b/htdocs/webredirect.php index ccff074..3b56bf9 100644 --- a/htdocs/webredirect.php +++ b/htdocs/webredirect.php @@ -35,7 +35,7 @@ if (isset($_REQUEST['submit']) and ($_REQUEST['submit'] == "Valider" or $_REQUES } elseif (isset($_REQUEST['submit']) and $_REQUEST['submit'] == "Supprimer") { // on supprime la redirection $globals->db->query("update auth_user_quick set redirecturl = '' where user_id = {$_SESSION['uid']}"); - if (mysql_errno($conn) == 0) { + if (mysql_errno() == 0) { $_SESSION['log']->log("carva_del",$_REQUEST['url']); $_POST['url'] = ''; $page->assign('message',"

Redirection supprimée

");