From cb2105b6a1549fdccfc80ad9161d0ab074f11c57 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 1 Aug 2011 15:50:49 +0000 Subject: [PATCH] =?utf8?q?fixes=20Bug=20#27543=20-=20=E2=80=9CWarning:=20i?= =?utf8?q?n=5Farray()=20[function.in-array]:=20Wrong=20datatype=20for=20se?= =?utf8?q?cond=20argument=20in=20ParserOptions.php=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit AFAICT, result of ParserOutput::getUsedOptions() is only used by ParserOptions::optionsHash() but that method doesn't account for a non-array value. Patch supplied on bug. --- includes/parser/ParserOutput.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 55dfba26aa..363da78273 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -396,11 +396,11 @@ class ParserOutput extends CacheTime { /** * Returns the options from its ParserOptions which have been taken * into account to produce this output or false if not available. - * @return mixed Array/false + * @return mixed Array */ public function getUsedOptions() { if ( !isset( $this->mAccessedOptions ) ) { - return false; + return array(); } return array_keys( $this->mAccessedOptions ); } -- 2.20.1