summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-03-20 14:45:43 +0400
committerAndrew Dolgov <[email protected]>2012-03-20 14:45:43 +0400
commit6a79e8afeb2038fa20796846fd1e2b64113112c3 (patch)
tree2036be10f5d4485f2d848f7f172fcde7eadbdcf4 /api
parent787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d (diff)
only enable ob_gzhandler if it exists
Diffstat (limited to 'api')
-rw-r--r--api/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index b8a6d4c4a..fd59f4bee 100644
--- a/api/index.php
+++ b/api/index.php
@@ -21,7 +21,9 @@
chdir("..");
- if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT) {
+ if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
+ function_exists("ob_gzhandler")) {
+
ob_start("ob_gzhandler");
}