From db76bcb593e34948dab2709bcb7b6c1139a37c72 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 23 May 2014 10:14:25 -0400 Subject: Minor code improvements --- app/Model/File.php | 2 +- app/Model/Task.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'app/Model') diff --git a/app/Model/File.php b/app/Model/File.php index 1e2e1432..b7015acc 100644 --- a/app/Model/File.php +++ b/app/Model/File.php @@ -86,7 +86,7 @@ class File extends Base */ public function getAll($task_id) { - return $listing = $this->db->table(self::TABLE) + return $this->db->table(self::TABLE) ->eq('task_id', $task_id) ->asc('name') ->findAll(); diff --git a/app/Model/Task.php b/app/Model/Task.php index f31594c9..faa33ca9 100644 --- a/app/Model/Task.php +++ b/app/Model/Task.php @@ -215,8 +215,6 @@ class Task extends Base { $this->db->startTransaction(); - $boardModel = new Board($this->db, $this->event); - // Get the original task $task = $this->getById($task_id); -- cgit v1.2.3