Merge pull request #5876 from nupplaphil/friendica-5875

Uncaught Error for getCurlCode()
This commit is contained in:
Hypolite Petovan 2018-10-10 12:18:11 -04:00 committed by GitHub
commit 904fee3bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ class HTTPSignature
$headers[] = 'Content-Type: application/activity+json';
Network::post($target, $content, $headers);
$return_code = BaseObject::getApp()->getCurlCode();
$return_code = Network::getCurl()->getCode();
logger('Transmit to ' . $target . ' returned ' . $return_code);
}