diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 13672e9cb1e..83faccc806a 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] ); } /**