Sfoglia il codice sorgente

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

Yannick Warnier 11 anni fa
parent
commit
865e8482b4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
             // Force the browser to save the file instead of opening it
 
 
             global $_configuration;
             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");
                 header("X-Sendfile: $filename");
             }
             }