ソースを参照

[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 ');

読み込み中…
キャンセル
保存