X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=35b2f385802c5ea77f639be806cf6b8fc7fd6660;hb=aba5b4c583dcc739d6588c9ce43c7e2560bcdc8d;hp=560588f43db1285d4150ca3360aec3e6e6e546f0;hpb=4acf38255f60c7f91a30e9f2aefabfcbbe41a6ce;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 560588f43d..35b2f38580 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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;