Avoid PHP 5.3 issue
This commit is contained in:
@@ -30,9 +30,9 @@ class ProjectDailyColumnStats extends Base
|
|||||||
*/
|
*/
|
||||||
public function updateTotals($project_id, $date)
|
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');
|
$column_ids = $db->table(Board::TABLE)->eq('project_id', $project_id)->findAllByColumn('id');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user