diff --git a/mod/display.php b/mod/display.php index b47346c4ba..da4566dc4a 100644 --- a/mod/display.php +++ b/mod/display.php @@ -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` = ''