Fix attachLatest --regenerate-all creating invalid SQL command

Change-Id: Iabb55be7b7c55dad072b53147570ae71ed382081
(cherry picked from commit 6f708bf0746fb43fbce8d32368bdb0519a64ed9b)
This commit is contained in:
Redjard 2025-01-06 13:54:07 +01:00 committed by jenkins-bot
parent 0809cc355f
commit 88c6cfbc8d

View file

@ -52,7 +52,7 @@ class AttachLatest extends Maintenance {
$dbw = $this->getPrimaryDB();
$conds = [ 'page_latest' => 0 ];
if ( $this->hasOption( 'regenerate-all' ) ) {
$conds = '';
$conds = [];
}
$result = $dbw->newSelectQueryBuilder()
->select( [ 'page_id', 'page_namespace', 'page_title' ] )