Просмотр исходного кода

[Administration] Statistiques : problème calcul statistiques

develop
Guillaume Bourgeois 5 месяцев назад
Родитель
Сommit
f72eae0a4d
1 измененных файлов: 3 добавлений и 1 удалений
  1. +3
    -1
      Statistic/Statistic.php

+ 3
- 1
Statistic/Statistic.php Просмотреть файл

public function setData(string $propertyName, string $key, $value) public function setData(string $propertyName, string $key, $value)
{ {
if (isset($this->properties[$propertyName])) { 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; $this->properties[$propertyName]['total_period'] += $value;
} else { } else {
throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas '); throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas ');

Загрузка…
Отмена
Сохранить