diff --git a/module/chart/model.php b/module/chart/model.php index a6bf2c25d6..347c5f2502 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -313,8 +313,7 @@ class chartModel extends model $maxCount = 50; if(empty($date)) arsort($stat); - $copyStat = $stat; - $other = array_sum(array_splice($copyStat, $maxCount)); + $other = array_sum(array_splice($stat, $maxCount)); $stat[$this->lang->chart->other] = $other; if(empty($date)) arsort($stat);