Fix unit test (PHP 5.4 regression)
This commit is contained in:
parent
2e4c2b6e05
commit
81e4c3199e
|
|
@ -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']++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue