diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-16 19:40:26 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-16 19:40:26 -0500 |
commit | 81e4c3199edd4e92f66fe7db6bc36d30d16ee96d (patch) | |
tree | 9d2afa2e1da8ca9958cdd12c4dac8278d1dbd478 /app | |
parent | 2e4c2b6e0571690e8b8d0488dbb53e3373a86ff5 (diff) |
Fix unit test (PHP 5.4 regression)
Diffstat (limited to 'app')
-rw-r--r-- | app/Analytic/AverageTimeSpentColumnAnalytic.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Analytic/AverageTimeSpentColumnAnalytic.php b/app/Analytic/AverageTimeSpentColumnAnalytic.php index 820db801..c3cff548 100644 --- a/app/Analytic/AverageTimeSpentColumnAnalytic.php +++ b/app/Analytic/AverageTimeSpentColumnAnalytic.php @@ -63,7 +63,9 @@ class AverageTimeSpentColumnAnalytic extends Base */ private function processTasks(array &$stats, $project_id) { - foreach ($this->getTasks($project_id) as &$task) { + $tasks = $this->getTasks($project_id); + + foreach ($tasks as &$task) { foreach ($this->getTaskTimeByColumns($task) as $column_id => $time_spent) { if (isset($stats[$column_id])) { $stats[$column_id]['count']++; |