瀏覽代碼

Profile data from the gcontact should only be taken if there is content

tags/3.5
Michael Vogel 4 年之前
父節點
當前提交
596416defe
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. +11
    -4
      mod/display.php

+ 11
- 4
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"];
}
}
}


Loading…
取消
儲存