瀏覽代碼

[Administration] Statistiques : problème calcul statistiques

develop
Guillaume Bourgeois 5 月之前
父節點
當前提交
f72eae0a4d
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      Statistic/Statistic.php

+ 3
- 1
Statistic/Statistic.php 查看文件

@@ -58,7 +58,9 @@ class Statistic
public function setData(string $propertyName, string $key, $value)
{
if (isset($this->properties[$propertyName])) {
$this->properties[$propertyName]['data'][$key] += $value;
if(isset($this->properties[$propertyName]['data'][$key])) {
$this->properties[$propertyName]['data'][$key] += $value;
}
$this->properties[$propertyName]['total_period'] += $value;
} else {
throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas ');

Loading…
取消
儲存