From: Roan Kattouw Date: Mon, 15 Feb 2010 21:34:31 +0000 (+0000) Subject: Fix broken comma logic in r62486 X-Git-Tag: 1.31.0-rc.0~37739 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=d555e90cea525306f3c0afd52c11e3309dac4dbd;p=lhc%2Fweb%2Fwiklou.git Fix broken comma logic in r62486 --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index ac782b34b5..3a2602e673 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -317,11 +317,12 @@ class ApiMain extends ApiBase { if ( is_bool( $value ) ) { if ( $value ) { $ccHeader .= $separator . $name; + $separator = ', '; } } else { $ccHeader .= $separator . "$name=$value"; + $separator = ', '; } - $separator = ', '; } header( "Cache-Control: $ccHeader" );