mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-01 13:19:12 +00:00
Merge pull request #752 from zachborboa/master
Fix static analysis error
This commit is contained in:
+1
-1
@@ -2178,7 +2178,7 @@ class Curl
|
||||
$response_header_array = explode("\r\n\r\n", $raw_response_headers);
|
||||
$response_header = '';
|
||||
for ($i = count($response_header_array) - 1; $i >= 0; $i--) {
|
||||
if (stripos($response_header_array[$i], 'HTTP/') === 0) {
|
||||
if (isset($response_header_array[$i]) && stripos($response_header_array[$i], 'HTTP/') === 0) {
|
||||
$response_header = $response_header_array[$i];
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user