Warnings fixed
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user