Skip to content

Commit

Permalink
issue #2360
Browse files Browse the repository at this point in the history
  • Loading branch information
Novik committed May 12, 2022
1 parent f990f4f commit 97ec928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/history/history.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public function add( $e, $limit )
{
$keys = array_keys($this->data);
$values = array_values($this->data);
$this->data = array_combine(array_splice($keys,$count-1),array_splice($values,$count-1));
$offset = $limit / 2;
$this->data = array_combine(array_splice($keys,0,$offset),array_splice($values,0,$offset));
}
$this->store();
}
Expand Down

0 comments on commit 97ec928

Please sign in to comment.