diff options
author | Friendika <info@friendika.com> | 2011-04-11 16:42:41 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-11 16:42:41 -0700 |
commit | 0085bf0c10f52fd95b306a5e89e8b175c6da01dc (patch) | |
tree | 5692d4e8151710e5ca3742e978b44ba6f45d9bae /mod/display.php | |
parent | a4836ac1ba1c92f54d286621592f3f332603ff07 (diff) | |
download | volse-hubzilla-0085bf0c10f52fd95b306a5e89e8b175c6da01dc.tar.gz volse-hubzilla-0085bf0c10f52fd95b306a5e89e8b175c6da01dc.tar.bz2 volse-hubzilla-0085bf0c10f52fd95b306a5e89e8b175c6da01dc.zip |
that's better...
Diffstat (limited to 'mod/display.php')
-rw-r--r-- | mod/display.php | 6 |
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` = '' |