]> git.mxchange.org Git - friendica.git/commitdiff
that's better...
authorFriendika <info@friendika.com>
Mon, 11 Apr 2011 23:42:41 +0000 (16:42 -0700)
committerFriendika <info@friendika.com>
Mon, 11 Apr 2011 23:42:41 +0000 (16:42 -0700)
mod/display.php

index b47346c4baae6a7e758aefce7c238cc8ef5b6fa5..da4566dc4a4c5f549c47e1a56ddbb42638a8d61f 100644 (file)
@@ -45,7 +45,11 @@ function display_content(&$a) {
                }
        }
 
-       $a->page_contact = $contact;
+       $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1",
+               intval($a->profile['uid'])
+       );
+       if(count($r))
+               $a->page_contact = $r[0];
 
        $sql_extra = "
                AND `allow_cid` = ''