Several more warnings ... (#5340)
* Some more warnings removed * Even more warnings ... * Will it ever end? ;-) * Avoid warning in dbstructure * Origin and OStatus ... * There are more warnings solved ... yeah! * And again ... * We are not done yet * And more ... * And some new places ... * And more in the feeds * Avoid some more * And some backend stuff * Notifications cleared * Some more stuff * and again ... * It's getting fewer ... * Some warnings had been hidden in the notifications * Fix the fix * And another missing one ... * We need the owner here, not the user * Forgotten user * And more ... * And some more warnings disappeared ... * Some more frontend warnings * Some backend warnings removed * Fixed sidebar for "vier" * And more ... * Some more ... * And something for "remote self" * Am I stuck in an endless loop? * Fix: Clear tag and file field on update * Preset page content
This commit is contained in:
parent
32ef5623ab
commit
0360f7197a
48 changed files with 415 additions and 267 deletions
|
@ -787,11 +787,11 @@ class GContact
|
|||
|
||||
// Bugfix: We had an error in the storing of keywords which lead to the "0"
|
||||
// This value is still transmitted via poco.
|
||||
if ($contact["keywords"] == "0") {
|
||||
if (!empty($contact["keywords"]) && ($contact["keywords"] == "0")) {
|
||||
unset($contact["keywords"]);
|
||||
}
|
||||
|
||||
if ($public_contact[0]["keywords"] == "0") {
|
||||
if (!empty($public_contact[0]["keywords"]) && ($public_contact[0]["keywords"] == "0")) {
|
||||
$public_contact[0]["keywords"] = "";
|
||||
}
|
||||
|
||||
|
@ -996,7 +996,7 @@ class GContact
|
|||
|
||||
$statistics = json_decode($result["body"]);
|
||||
|
||||
if (is_object($statistics->config)) {
|
||||
if (!empty($statistics->config)) {
|
||||
if ($statistics->config->instance_with_ssl) {
|
||||
$server = "https://";
|
||||
} else {
|
||||
|
@ -1006,8 +1006,7 @@ class GContact
|
|||
$server .= $statistics->config->instance_address;
|
||||
|
||||
$hostname = $statistics->config->instance_address;
|
||||
} else {
|
||||
/// @TODO is_object() above means here no object, still $statistics is being used as object
|
||||
} elseif (!empty($statistics)) {
|
||||
if ($statistics->instance_with_ssl) {
|
||||
$server = "https://";
|
||||
} else {
|
||||
|
@ -1019,7 +1018,7 @@ class GContact
|
|||
$hostname = $statistics->instance_address;
|
||||
}
|
||||
|
||||
if (is_object($statistics->users)) {
|
||||
if (!empty($statistics->users)) {
|
||||
foreach ($statistics->users as $nick => $user) {
|
||||
$profile_url = $server."/".$user->nickname;
|
||||
|
||||
|
@ -1027,9 +1026,13 @@ class GContact
|
|||
"name" => $user->fullname,
|
||||
"addr" => $user->nickname."@".$hostname,
|
||||
"nick" => $user->nickname,
|
||||
"about" => $user->bio,
|
||||
"network" => NETWORK_OSTATUS,
|
||||
"photo" => System::baseUrl()."/images/person-175.jpg"];
|
||||
|
||||
if (isset($user->bio)) {
|
||||
$contact["about"] = $user->bio;
|
||||
}
|
||||
|
||||
self::getId($contact);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue