aboutsummaryrefslogtreecommitdiffstats
path: root/mod/display.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/display.php')
-rw-r--r--mod/display.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/display.php b/mod/display.php
index b47346c4b..da4566dc4 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` = ''