소스 검색

[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…
취소
저장