]> git.mxchange.org Git - friendica.git/commitdiff
Fixes notice: Undefined index: nobody in /src/Util/HTTPSignature.php on line 450
authorMichael <heluecht@pirati.ca>
Tue, 20 Oct 2020 15:19:06 +0000 (15:19 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 20 Oct 2020 15:19:06 +0000 (15:19 +0000)
src/Util/HTTPSignature.php

index e3244fade3a7030e6ba8fc5a745fcc9cfe63d1c9..c5507adf3faef85631f4f25eaee1c5dbf40e66f1 100644 (file)
@@ -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);