From: Roan Kattouw Date: Mon, 31 Oct 2011 18:27:35 +0000 (+0000) Subject: Prevent notice in OutputPage by casting to an array. This already exists on the WMF... X-Git-Tag: 1.31.0-rc.0~26807 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=faeddd0da7eaeb5e97357939bb13b346c09e4647;p=lhc%2Fweb%2Fwiklou.git Prevent notice in OutputPage by casting to an array. This already exists on the WMF cluster as a live hack --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 13672e9cb1..83faccc806 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1640,7 +1640,7 @@ class OutputPage extends ContextSource { $this->mVaryHeader[$header] = $option; } } - $this->mVaryHeader[$header] = array_unique( $this->mVaryHeader[$header] ); + $this->mVaryHeader[$header] = array_unique( (array)$this->mVaryHeader[$header] ); } /**