From: Michael Vogel Date: Fri, 29 Jan 2016 11:14:04 +0000 (+0100) Subject: Profile data from the gcontact should only be taken if there is content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=596416defe1c3157c4a54ce31333a92680ce4e68;p=friendica.git Profile data from the gcontact should only be taken if there is content --- diff --git a/mod/display.php b/mod/display.php index ca57af9233..4e33927072 100644 --- a/mod/display.php +++ b/mod/display.php @@ -192,13 +192,20 @@ function display_fetchauthor($a, $item) { $profiledata["photo"] = $r[0]["photo"]; $profiledata["nickname"] = $r[0]["nick"]; $profiledata["addr"] = $r[0]["addr"]; - $profiledata["keywords"] = $r[0]["keywords"]; $profiledata["network"] = $r[0]["network"]; + if ($r[0]["keywords"]) + $profiledata["keywords"] = $r[0]["keywords"]; + if ($showdetails) { - $profiledata["address"] = $r[0]["location"]; - $profiledata["about"] = $r[0]["about"]; - $profiledata["gender"] = $r[0]["gender"]; + if ($r[0]["location"]) + $profiledata["address"] = $r[0]["location"]; + + if ($r[0]["about"]) + $profiledata["about"] = $r[0]["about"]; + + if ($r[0]["gender"]) + $profiledata["gender"] = $r[0]["gender"]; } } }