浏览代码

Merge branch 'develop'

master
Guillaume Bourgeois 10 个月前
父节点
当前提交
94b2d625b1
共有 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 ');

正在加载...
取消
保存