(bug 41899) Fix "Undefined index: start" notice
authorKevin Israel <pleasestand@live.com>
Thu, 8 Nov 2012 18:37:06 +0000 (13:37 -0500)
committerKevin Israel <pleasestand@live.com>
Thu, 8 Nov 2012 18:58:47 +0000 (13:58 -0500)
Unsetting the continue param rather than setting it to null
results in this PHP error message.

Patchset 2: added release note.

Change-Id: Ieb6be0ac047d6a4a46fb6522fbbdc058bb386411

RELEASE-NOTES-1.21
includes/api/ApiQueryRevisions.php

index 4be260e..b9b026c 100644 (file)
@@ -60,6 +60,7 @@ production.
 * (bug 26995) Update filename field on Upload page after having sanitized it.
 * (bug 41793) Contribution links to users with 0 edits on Special:ListUsers didn't
   show up red.
+* (bug 41899) A PHP notice no longer occurs when using the "rvcontinue" API parameter.
 
 === API changes in 1.21 ===
 * prop=revisions can now report the contentmodel and contentformat, see docs/contenthandler.txt
index 5c3b33b..ad40a64 100644 (file)
@@ -261,7 +261,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                        // rvstart and rvstartid when that is supplied.
                        if ( !is_null( $params['continue'] ) ) {
                                $params['startid'] = $params['continue'];
-                               unset( $params['start'] );
+                               $params['start'] = null;
                        }
 
                        // This code makes an assumption that sorting by rev_id and rev_timestamp produces