Parcourir la source

[Administration] Statistiques : problème calcul statistiques

develop
Guillaume Bourgeois il y a 5 mois
Parent
révision
f72eae0a4d
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      Statistic/Statistic.php

+ 3
- 1
Statistic/Statistic.php Voir le fichier

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

Chargement…
Annuler
Enregistrer