Unverified Commit 721f0993 authored by Robert Mikołajuk's avatar Robert Mikołajuk
Browse files

Issue #3185298 by vokiel, joelpittet: Notice: Trying to access array offset on...

Issue #3185298 by vokiel, joelpittet: Notice: Trying to access array offset on value of type bool in ckeditor_file_download()
parent 03b52a8a
Loading
Loading
Loading
Loading
+1 −1
Changes for ckeditor.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -722,7 +722,7 @@ function ckeditor_file_download($uri) {
    //check if file can be served by comparing regex and path to file
    if (preg_match($regex, $path)) {
      $info = image_get_info($uri);
      return array('Content-Type' => $info['mime_type']);
      return !empty($info['mime_type']) ? array('Content-Type' => $info['mime_type']) : NULL;
    }
  }
}