From f30beee87eeb518658af894981b16120eb0ba818 Mon Sep 17 00:00:00 2001 From: mathieu Date: Thu, 4 Jun 2015 14:26:31 -0400 Subject: [PATCH] fix arg by ref removal in previous commit. Refs #27 --- application/models/measure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/measure.php b/application/models/measure.php index b0b3fb1e..83f0e4d6 100644 --- a/application/models/measure.php +++ b/application/models/measure.php @@ -165,7 +165,7 @@ function addAccuracyMesure($measureId, $referenceTime, $userTime){ if($this->update($measureId, $data) !== false){ $watchMeasure = $this->find($measureId); - $this->computeAccuracy($watchMeasure); + $watchMeasure->accuracy = $this->computeAccuracy($watchMeasure); return $watchMeasure; }