Fix badcontinue in possible errors of paraminfo
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 16 May 2013 06:55:39 +0000 (08:55 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Thu, 16 May 2013 06:55:39 +0000 (08:55 +0200)
Badcontinue results in
<error code="unknownerror" info="Unknown error: &quot;badcontinue&quot;"
/>
because there is one array deep too much.

Change-Id: Iff88c3864f65e5da6cd31594396dffdaa71b5593

includes/api/ApiBase.php

index c500370..7e7365f 100644 (file)
@@ -1577,10 +1577,9 @@ abstract class ApiBase extends ContextSource {
                        }
                        if ( array_key_exists( 'continue', $params ) ) {
                                $ret[] = array(
-                                       array(
-                                               'code' => 'badcontinue',
-                                               'info' => 'Invalid continue param. You should pass the original value returned by the previous query'
-                                       ) );
+                                       'code' => 'badcontinue',
+                                       'info' => 'Invalid continue param. You should pass the original value returned by the previous query'
+                               );
                        }
                }