[lib/contents.php] Use variable name 'retVal' instead of 'retval' as variable names are case-sensitive (#2498)

This commit is contained in:
Paul Staroch 2022-03-14 01:46:30 +01:00 committed by GitHub
parent 05273a9278
commit 18504f2356
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,7 +265,7 @@ function getContents($url, $header = array(), $opts = array(), $returnHeader = f
throw new GetContentsException('cURL error: ' . $curlError . ' (' . $curlErrno . ')');
}
throw new UnexpectedResponseException($retval['content'], $retval['header'], $errorCode);
throw new UnexpectedResponseException($retVal['content'], $retVal['header'], $errorCode);
}
return ($returnHeader === true) ? $retVal : $retVal['content'];