r113212 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113211‎ | r113212 | r113213 >
Date:02:10, 7 March 2012
Author:catrope
Status:ok
Tags:
Comment:
1.19wmf1: MFT r113211
Modified paths:
  • /branches/wmf/1.19wmf1/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/includes/api/ApiBase.php
@@ -1269,6 +1269,7 @@
12701270 * @return array('code' => code, 'info' => info)
12711271 */
12721272 public function parseMsg( $error ) {
 1273+ $error = (array)$error; // It seems strings sometimes make their way in here
12731274 $key = array_shift( $error );
12741275
12751276 // Check whether the error array was nested

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113211It seems that parseMsg() sometimes receives strings, probably from bad dieUsa...catrope02:09, 7 March 2012

Status & tagging log