Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 3, 2024
1 parent 2d1635e commit d265c15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/class/timeline.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,8 @@ public static function clean($_all = false) {
if($delete_number <= 0){
return;
}
$values = array(
'number' => $delete_number,
);
$sql = 'DELETE FROM timeline ORDER BY `datetime` ASC LIMIT '.$delete_number;
DB::Prepare($sql, $values, DB::FETCH_TYPE_ROW);
DB::Prepare($sql, array(), DB::FETCH_TYPE_ROW);

//ensure no duplicates:
$sql = 'DELETE t1 FROM timeline t1 INNER JOIN timeline t2 WHERE ';
Expand Down

0 comments on commit d265c15

Please sign in to comment.