Removes the last direct call to get_user_login().
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Fri, 13 Jun 2008 16:35:30 +0000 (18:35 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Fri, 13 Jun 2008 16:35:30 +0000 (18:35 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/carnet.php

index febcf3b..39e645e 100644 (file)
@@ -236,7 +236,7 @@ class CarnetModule extends PLModule
 
             case 'ajouter':
                 require_once('user.func.inc.php');
-                if (($login = get_user_login($user)) !== false) {
+                if (($login = get_user_forlife($user)) !== false) {
                     if (XDB::execute(
                                 'REPLACE INTO  contacts (uid, contact)
                                        SELECT  {?}, id