summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-25 14:05:27 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-25 14:05:27 -0400
commitc5481618a723599dea8f0686d2714a842e5ebb45 (patch)
treef9d291209f411803d3b607a04422a253b2cc9419
parentc360ab3aa6821e6f6b51325e8866a0c57d2bdff2 (diff)
Avoid PHP 5.3 issue
-rw-r--r--app/Model/ProjectDailyColumnStats.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/ProjectDailyColumnStats.php b/app/Model/ProjectDailyColumnStats.php
index d5c72c12..774ed7f9 100644
--- a/app/Model/ProjectDailyColumnStats.php
+++ b/app/Model/ProjectDailyColumnStats.php
@@ -30,9 +30,9 @@ class ProjectDailyColumnStats extends Base
*/
public function updateTotals($project_id, $date)
{
- return $this->db->transaction(function($db) use ($project_id, $date) {
+ $status = $this->config->get('cfd_include_closed_tasks') == 1 ? array(Task::STATUS_OPEN, Task::STATUS_CLOSED) : array(Task::STATUS_OPEN);
- $status = $this->config->get('cfd_include_closed_tasks') == 1 ? array(Task::STATUS_OPEN, Task::STATUS_CLOSED) : array(Task::STATUS_OPEN);
+ return $this->db->transaction(function($db) use ($project_id, $date, $status) {
$column_ids = $db->table(Board::TABLE)->eq('project_id', $project_id)->findAllByColumn('id');