Commit a12065ac authored by Italo Mairo's avatar Italo Mairo Committed by Italo Mairo
Browse files

Issue #3295624 by itamair: Trying to access array offset on value of type bool...

Issue #3295624 by itamair: Trying to access array offset on value of type bool in Drupal\leaflet\LeafletService->fileExists()
parent bf8d5add
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ class LeafletService {
   */
  public function fileExists($fileUrl) {
    $file_headers = @get_headers($fileUrl);
    if (isset($file_headers)
    if (!empty($file_headers[0])
      && (stripos($file_headers[0], "404 Not Found") == 0)
      && (stripos($file_headers[0], "403 Forbidden") == 0)
      && (stripos($file_headers[0], "302 Found") == 0 && isset($file_headers[7]) && stripos($file_headers[7], "404 Not Found") == 0)) {