From: Mark A. Hershberger Date: Mon, 1 Aug 2011 15:50:49 +0000 (+0000) Subject: fixes Bug #27543 - “Warning: in_array() [function.in-array]: Wrong datatype for secon... X-Git-Tag: 1.31.0-rc.0~28519 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=cb2105b6a1549fdccfc80ad9161d0ab074f11c57;p=lhc%2Fweb%2Fwiklou.git fixes Bug #27543 - “Warning: in_array() [function.in-array]: Wrong datatype for second argument in ParserOptions.php” 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. --- 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 ); }