Prevent notice in OutputPage by casting to an array. This already exists on the WMF...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 31 Oct 2011 18:27:35 +0000 (18:27 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 31 Oct 2011 18:27:35 +0000 (18:27 +0000)
includes/OutputPage.php

index 13672e9..83faccc 100644 (file)
@@ -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] );
        }
 
        /**