Follow-up 993ce4d: use pp_page for $lastPageValue, not pp_value
authorRoan Kattouw <roan.kattouw@gmail.com>
Tue, 25 Jul 2017 23:20:37 +0000 (16:20 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Tue, 25 Jul 2017 23:20:37 +0000 (16:20 -0700)
This caused the script to get in an infinite loop and never stop.

Change-Id: Ib28a033e82b76fd60005335b882a7f5d95ac6644

maintenance/populatePPSortKey.php

index 519c665..fd7974d 100644 (file)
@@ -88,7 +88,7 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance {
                        $this->commitTransaction( $dbw, __METHOD__ );
 
                        // We need to get the last element's page ID
-                       $lastPageValue = $row->pp_value;
+                       $lastPageValue = $row->pp_page;
                        // And the propname...
                        $lastProp = $row->pp_propname;
                }