Skip to content
Snippets Groups Projects
Unverified Commit ca164826 authored by Scott Joudry's avatar Scott Joudry
Browse files

Issue #3376577: PHP notice when enabling functionality - PHP 7

parent f7e65ef8
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,8 @@ function minifyhtml_exit() { ...@@ -111,7 +111,8 @@ function minifyhtml_exit() {
// Make sure to exclude image style images (is this even required // Make sure to exclude image style images (is this even required
// anymore??). // anymore??).
// Make sure the buffer has a length. // Make sure the buffer has a length.
if (stripos(drupal_get_http_header('content-type'), 'text/html') !== FALSE && !is_file($current_path) && ob_get_length()) { $content_type = drupal_get_http_header('content-type');
if (!empty($content_type) && stripos($content_type, 'text/html') !== FALSE && !is_file($current_path) && ob_get_length()) {
// Catch the output buffer. Converted from ob_get_clean(). // Catch the output buffer. Converted from ob_get_clean().
$page = ob_get_contents(); $page = ob_get_contents();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment