Index: branches/wmf/1.19wmf1/includes/api/ApiBase.php |
— | — | @@ -1269,6 +1269,7 @@ |
1270 | 1270 | * @return array('code' => code, 'info' => info) |
1271 | 1271 | */ |
1272 | 1272 | public function parseMsg( $error ) { |
| 1273 | + $error = (array)$error; // It seems strings sometimes make their way in here |
1273 | 1274 | $key = array_shift( $error ); |
1274 | 1275 | |
1275 | 1276 | // Check whether the error array was nested |