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

htdocs/carnet/mescontacts.php
htdocs/fiche.php

index 96de517..2f3fa62 100644 (file)
@@ -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
index 237af2d..f8c10c6 100644 (file)
@@ -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')