Browse Source

Merge remote-tracking branch 'origin/1.9.x' into 1.9.x

Yannick Warnier 11 years ago
parent
commit
865e8482b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/document.lib.php

+ 1 - 1
main/inc/lib/document.lib.php

@@ -321,7 +321,7 @@ class DocumentManager
             // Force the browser to save the file instead of opening it
 
             global $_configuration;
-            if (!empty($_configuration['enable_x_sendfile_headers'])) {
+            if (isset($_configuration['enable_x_sendfile_headers']) && !empty($_configuration['enable_x_sendfile_headers'])) {
                 header("X-Sendfile: $filename");
             }