https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113212

Revision: 113212
Author:   catrope
Date:     2012-03-07 02:10:32 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
1.19wmf1: MFT r113211

Modified Paths:
--------------
    branches/wmf/1.19wmf1/includes/api/ApiBase.php

Modified: branches/wmf/1.19wmf1/includes/api/ApiBase.php
===================================================================
--- branches/wmf/1.19wmf1/includes/api/ApiBase.php      2012-03-07 02:09:22 UTC 
(rev 113211)
+++ branches/wmf/1.19wmf1/includes/api/ApiBase.php      2012-03-07 02:10:32 UTC 
(rev 113212)
@@ -1269,6 +1269,7 @@
         * @return array('code' => code, 'info' => info)
         */
        public function parseMsg( $error ) {
+               $error = (array)$error; // It seems strings sometimes make 
their way in here
                $key = array_shift( $error );
 
                // Check whether the error array was nested


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to