We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a2020 commit 84cab53Copy full SHA for 84cab53
1 file changed
gdpr_cookies.module
@@ -36,7 +36,8 @@ function gdpr_cookies_exit() {
36
// after all.
37
// Make sure to exclude image style images (is this even required anymore??).
38
// Make sure the buffer has a length.
39
- if (stripos(backdrop_get_http_header('content-type'), 'text/html') !== FALSE && !is_file($current_path) && ob_get_length()) {
+ $http_header = backdrop_get_http_header('content-type');
40
+ if (isset($http_header) && stripos($http_header, 'text/html') !== FALSE && !is_file($current_path) && ob_get_length()) {
41
42
// Catch the output buffer. Converted from ob_get_clean().
43
$page = ob_get_contents();
0 commit comments