Removes useless assignement, yourself was already fetched in the above query.
authorStéphane Jacob <sj@m4x.org>
Sun, 18 Jul 2010 14:36:33 +0000 (16:36 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 18 Jul 2010 14:36:33 +0000 (16:36 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/general.inc.php

index c89c11c..55782e1 100644 (file)
@@ -558,9 +558,6 @@ class ProfileSettingGeneral extends ProfilePage
                         LEFT JOIN  profile_phones        AS pp ON (pp.pid = p.pid AND link_type = 'user')
                             WHERE  p.pid = {?}", $this->pid());
         $this->values = $res->fetchOneAssoc();
-        if ($this->owner) {
-            $this->values['yourself'] = $this->owner->displayName();
-        }
 
         // Retreive photo informations
         $res = XDB::query("SELECT  pub