From: Michael Date: Tue, 20 Oct 2020 15:19:06 +0000 (+0000) Subject: Fixes notice: Undefined index: nobody in /src/Util/HTTPSignature.php on line 450 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c9d79040cbeb5868b12aae5fdd90128842248918;p=friendica.git Fixes notice: Undefined index: nobody in /src/Util/HTTPSignature.php on line 450 --- diff --git a/src/Util/HTTPSignature.php b/src/Util/HTTPSignature.php index e3244fade3..c5507adf3f 100644 --- a/src/Util/HTTPSignature.php +++ b/src/Util/HTTPSignature.php @@ -447,7 +447,7 @@ class HTTPSignature $curl_opts = $opts; $curl_opts['header'] = $header; - if ($opts['nobody']) { + if (!empty($opts['nobody'])) { $curlResult = DI::httpRequest()->head($request, $curl_opts); } else { $curlResult = DI::httpRequest()->get($request, $curl_opts);