From 7011b9a5955a49603e2b47864c99c0c19d3dca00 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sat, 25 Dec 2004 20:16:12 +0000 Subject: [PATCH] wiblle git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-134 --- htdocs/carnet/mescontacts.php | 2 +- htdocs/fiche.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/carnet/mescontacts.php b/htdocs/carnet/mescontacts.php index 96de517..2f3fa62 100644 --- a/htdocs/carnet/mescontacts.php +++ b/htdocs/carnet/mescontacts.php @@ -47,7 +47,7 @@ switch (Env::get('action')) { case "ajouter": require_once('user.func.inc.php'); - if (($login = get_user_login($user) !== false) { + if ($login = get_user_login($user) !== false) { if ($globals->db->query("INSERT INTO contacts (uid, contact) SELECT $uid, id FROM aliases diff --git a/htdocs/fiche.php b/htdocs/fiche.php index 237af2d..f8c10c6 100644 --- a/htdocs/fiche.php +++ b/htdocs/fiche.php @@ -35,7 +35,7 @@ if (Env::has('user')) { } } -if (Enf::has('mat')) { +if (Env::has('mat')) { $res = $globals->db->query("SELECT alias FROM aliases AS a INNER JOIN auth_user_md5 AS u ON (a.id=u.user_id AND a.type='a_vie') -- 2.1.4