Prevent notice in OutputPage by casting to an array. This already exists on the WMF cluster as a live hack

This commit is contained in:
Roan Kattouw 2011-10-31 18:27:35 +00:00
parent 6447ae9f21
commit faeddd0da7

View 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] );
}
/**