From: Pierre Habouzit (MadCoder Date: Sat, 25 Dec 2004 20:16:12 +0000 (+0000) Subject: wiblle X-Git-Tag: xorg/old~614 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7011b9a5955a49603e2b47864c99c0c19d3dca00;p=platal.git wiblle git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-134 --- 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')