X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrecountCategories.php;h=7e8f0636d5ebc00a58d423c71e1b92ea2ac9f8f2;hb=449e31a179e337edbc205262bb29476c901d19c5;hp=ed6a357b36e867a07b28436e217057492b587b55;hpb=863b4880ad8c244dfb8d99b8488e7e0f64513aea;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/recountCategories.php b/maintenance/recountCategories.php index ed6a357b36..7e8f0636d5 100644 --- a/maintenance/recountCategories.php +++ b/maintenance/recountCategories.php @@ -156,7 +156,7 @@ TEXT [ "cat_{$this->mode}" => $row->count ], [ 'cat_id' => $row->cat_id, - "cat_{$this->mode} != {$row->count}", + "cat_{$this->mode} != " . (int)( $row->count ), ], __METHOD__ ); $affectedRows += $dbw->affectedRows(); @@ -168,5 +168,5 @@ TEXT } } -$maintClass = 'RecountCategories'; +$maintClass = RecountCategories::class; require_once RUN_MAINTENANCE_IF_MAIN;