$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"];
}
}
}
return;
}
- // Why do we need this on the display page? We don't have the possibility to write new content here.
- // Ad editing of posts work without this as well.
- // We should remove this completely for the 3.5.1 release.
- /*
+ // We need the editor here to be able to reshare an item.
+
if ($is_owner) {
$x = array(
'is_owner' => true,
);
$o .= status_editor($a,$x,0,true);
}
- */
$sql_extra = item_permissions_sql($a->profile['uid'],$remote_contact,$groups);