mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +00:00
Fix "Undefined variable $success"
This commit is contained in:
parent
b8396daca2
commit
28363a5416
1 changed files with 6 additions and 9 deletions
|
@ -338,16 +338,13 @@ class Delivery
|
||||||
if ($public_dfrn) {
|
if ($public_dfrn) {
|
||||||
Logger::info('Relay delivery to ' . $contact['url'] . ' with guid ' . $target_item['guid'] . ' returns ' . $deliver_status);
|
Logger::info('Relay delivery to ' . $contact['url'] . ' with guid ' . $target_item['guid'] . ' returns ' . $deliver_status);
|
||||||
|
|
||||||
if ($cmd == Delivery::POST) {
|
$success = ($deliver_status >= 200) && ($deliver_status <= 299);
|
||||||
if (($deliver_status >= 200) && ($deliver_status <= 299)) {
|
|
||||||
Post\DeliveryData::incrementQueueDone($target_item['uri-id'], $protocol);
|
|
||||||
|
|
||||||
|
if ($cmd == Delivery::POST) {
|
||||||
|
Post\DeliveryData::incrementQueueDone($target_item['uri-id'], $protocol);
|
||||||
GServer::setProtocol($contact['gsid'] ?? 0, $protocol);
|
GServer::setProtocol($contact['gsid'] ?? 0, $protocol);
|
||||||
$success = true;
|
|
||||||
} else {
|
} else {
|
||||||
Post\DeliveryData::incrementQueueFailed($target_item['uri-id']);
|
Post\DeliveryData::incrementQueueFailed($target_item['uri-id']);
|
||||||
$success = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return $success;
|
return $success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue