X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=maintenance%2FrecountCategories.php;h=7e8f0636d5ebc00a58d423c71e1b92ea2ac9f8f2;hb=7af9c25c885aaac732b990fb4b0172f36d77129d;hp=ed6a357b36e867a07b28436e217057492b587b55;hpb=34e956016bb9189af091569946257e5b9b138585;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;