X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateLogUsertext.php;h=6e8261a6125998f8fa1772bc373c268b2de8fce9;hb=409da2d8b33b3c315653b802337fc7bcd66af0ed;hp=c5c079ac0ace6aba40785024b8b9b40d2580dbe1;hpb=0773e0b86b7ff7fe45f09d806d7b946a41638c3b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateLogUsertext.php b/maintenance/populateLogUsertext.php index c5c079ac0a..6e8261a612 100644 --- a/maintenance/populateLogUsertext.php +++ b/maintenance/populateLogUsertext.php @@ -64,7 +64,8 @@ class PopulateLogUsertext extends LoggedUpdateMaintenance { $blockEnd = $start + $batchSize - 1; while ( $blockEnd <= $end ) { $this->output( "...doing log_id from $blockStart to $blockEnd\n" ); - $cond = "log_id BETWEEN $blockStart AND $blockEnd AND log_user = user_id"; + $cond = "log_id BETWEEN " . (int)$blockStart . " AND " . (int)$blockEnd . + " AND log_user = user_id"; $res = $db->select( [ 'logging', 'user' ], [ 'log_id', 'user_name' ], $cond, __METHOD__ );