Profile data from the gcontact should only be taken if there is content
This commit is contained in:
parent
863d49ccd0
commit
596416defe
1 changed files with 11 additions and 4 deletions
|
@ -192,12 +192,19 @@ function display_fetchauthor($a, $item) {
|
||||||
$profiledata["photo"] = $r[0]["photo"];
|
$profiledata["photo"] = $r[0]["photo"];
|
||||||
$profiledata["nickname"] = $r[0]["nick"];
|
$profiledata["nickname"] = $r[0]["nick"];
|
||||||
$profiledata["addr"] = $r[0]["addr"];
|
$profiledata["addr"] = $r[0]["addr"];
|
||||||
$profiledata["keywords"] = $r[0]["keywords"];
|
|
||||||
$profiledata["network"] = $r[0]["network"];
|
$profiledata["network"] = $r[0]["network"];
|
||||||
|
|
||||||
|
if ($r[0]["keywords"])
|
||||||
|
$profiledata["keywords"] = $r[0]["keywords"];
|
||||||
|
|
||||||
if ($showdetails) {
|
if ($showdetails) {
|
||||||
|
if ($r[0]["location"])
|
||||||
$profiledata["address"] = $r[0]["location"];
|
$profiledata["address"] = $r[0]["location"];
|
||||||
|
|
||||||
|
if ($r[0]["about"])
|
||||||
$profiledata["about"] = $r[0]["about"];
|
$profiledata["about"] = $r[0]["about"];
|
||||||
|
|
||||||
|
if ($r[0]["gender"])
|
||||||
$profiledata["gender"] = $r[0]["gender"];
|
$profiledata["gender"] = $r[0]["gender"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue