diff options
author | Jonathan Bauer | 2014-06-04 18:38:06 +0200 |
---|---|---|
committer | Jonathan Bauer | 2014-06-04 18:38:06 +0200 |
commit | 06a062b6daa67f4e039b55adf72112efcbd40fef (patch) | |
tree | 97407f0e1ed526c13b4dcd178fdce0d8570276dc /inc/render.inc.php | |
parent | remove broken error handling + href 'back' button (diff) | |
parent | Check if HTTP_ACCEPT_ENCODING is set in $_SERVER before accessing it (diff) | |
download | slx-admin-06a062b6daa67f4e039b55adf72112efcbd40fef.tar.gz slx-admin-06a062b6daa67f4e039b55adf72112efcbd40fef.tar.xz slx-admin-06a062b6daa67f4e039b55adf72112efcbd40fef.zip |
Merge branch 'master' of git.openslx.org:openslx-ng/slx-admin
Diffstat (limited to 'inc/render.inc.php')
-rw-r--r-- | inc/render.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/render.inc.php b/inc/render.inc.php index 6853acde..4fe9d002 100644 --- a/inc/render.inc.php +++ b/inc/render.inc.php @@ -32,7 +32,7 @@ class Render public static function output() { Header('Content-Type: text/html; charset=utf-8'); - $zip = (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false); + $zip = isset($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false); if ($zip) ob_start(); echo '<!DOCTYPE html> |