Skip to content

Commit 97ec928

Browse files
committed
issue #2360
1 parent f990f4f commit 97ec928

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/history/history.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public function add( $e, $limit )
4646
{
4747
$keys = array_keys($this->data);
4848
$values = array_values($this->data);
49-
$this->data = array_combine(array_splice($keys,$count-1),array_splice($values,$count-1));
49+
$offset = $limit / 2;
50+
$this->data = array_combine(array_splice($keys,0,$offset),array_splice($values,0,$offset));
5051
}
5152
$this->store();
5253
}

0 commit comments

Comments
 (0)