Fix selectRow() parameters in PopulateCategory
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Mar 2019 18:36:19 +0000 (11:36 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Mar 2019 18:36:19 +0000 (11:36 -0700)
Change-Id: Ib538657d5db889cd7c8a9ae694c60e92e13584f5

maintenance/populateCategory.php

index f07bc55..ce1506c 100644 (file)
@@ -93,9 +93,9 @@ TEXT
 
                $throttle = intval( $throttle );
                if ( $begin !== '' ) {
-                       $where = 'cl_to > ' . $dbw->addQuotes( $begin );
+                       $where = [ 'cl_to > ' . $dbw->addQuotes( $begin ) ];
                } else {
-                       $where = null;
+                       $where = [ '1 = 1' ];
                }
                $i = 0;