Merge "Localisation updates from http://translatewiki.net."
[lhc/web/wiklou.git] / includes / OutputPage.php
index 560588f..35b2f38 100644 (file)
@@ -1739,7 +1739,7 @@ class OutputPage extends ContextSource {
                $headers = array();
                foreach( $this->mVaryHeader as $header => $option ) {
                        $newheader = $header;
-                       if( is_array( $option ) ) {
+                       if ( is_array( $option ) && count( $option ) > 0 ) {
                                $newheader .= ';' . implode( ';', $option );
                        }
                        $headers[] = $newheader;