From: Michael Date: Sun, 15 Jan 2017 15:18:31 +0000 (+0000) Subject: As well here ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=47d04416b16de856f4e4227d640a207e10ad4c34;p=friendica.git As well here ... --- diff --git a/mod/p.php b/mod/p.php index 8755464519..3cd7a9eb7d 100644 --- a/mod/p.php +++ b/mod/p.php @@ -46,7 +46,7 @@ function p_init($a){ // Fetch some data from the author (We could combine both queries - but I think this is more readable) $r = q("SELECT `user`.`prvkey`, `contact`.`addr`, `user`.`nickname`, `contact`.`nick` FROM `user` - INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` + INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` AND `contact`.`self` WHERE `user`.`uid` = %d", intval($item[0]["uid"])); if (!dbm::is_result($r)) { header($_SERVER["SERVER_PROTOCOL"].' 404 '.t('Not Found'));