summaryrefslogtreecommitdiff
path: root/app/Model/ProjectDailyColumnStats.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-22 20:58:46 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-22 20:58:46 -0400
commit2425fd85c04e7ad6e571da1848bb8d4b54499394 (patch)
tree99111007b0ff53c4ef8d0ea728de34ceb64b5b42 /app/Model/ProjectDailyColumnStats.php
parent8768a4e3699c5b9235d8c834ad7689ae66ef36aa (diff)
Force integer type for aggregated metrics
Diffstat (limited to 'app/Model/ProjectDailyColumnStats.php')
-rw-r--r--app/Model/ProjectDailyColumnStats.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/ProjectDailyColumnStats.php b/app/Model/ProjectDailyColumnStats.php
index 2bcc4d55..0706a110 100644
--- a/app/Model/ProjectDailyColumnStats.php
+++ b/app/Model/ProjectDailyColumnStats.php
@@ -165,7 +165,7 @@ class ProjectDailyColumnStats extends Base
{
foreach ($metrics as $metric) {
if ($metric['day'] === $day && $metric['column_id'] == $column_id) {
- return $metric[$field];
+ return (int) $metric[$field];
}
}