mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:10:11 +00:00
Warnings fixed
This commit is contained in:
parent
c25c3b5981
commit
3e797547a3
17 changed files with 55 additions and 45 deletions
|
@ -662,6 +662,11 @@ class GContact
|
|||
$last_failure_str = '';
|
||||
$last_contact_str = '';
|
||||
|
||||
if (empty($contact["network"])) {
|
||||
logger("Empty network for contact url ".$contact["url"]." - Called by: ".System::callstack(), LOGGER_DEBUG);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (in_array($contact["network"], [NETWORK_PHANTOM])) {
|
||||
logger("Invalid network for contact url ".$contact["url"]." - Called by: ".System::callstack(), LOGGER_DEBUG);
|
||||
return false;
|
||||
|
|
|
@ -1030,10 +1030,8 @@ class Item extends BaseObject
|
|||
|
||||
private static function guid($item, $notify)
|
||||
{
|
||||
$guid = notags(trim($item['guid']));
|
||||
|
||||
if (!empty($guid)) {
|
||||
return $guid;
|
||||
if (!empty($item['guid'])) {
|
||||
return notags(trim($item['guid']));
|
||||
}
|
||||
|
||||
if ($notify) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue