From faeddd0da7eaeb5e97357939bb13b346c09e4647 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 31 Oct 2011 18:27:35 +0000 Subject: [PATCH] Prevent notice in OutputPage by casting to an array. This already exists on the WMF cluster as a live hack --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ); } /** -- 2.20.1