summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-23 10:14:25 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-23 10:14:25 -0400
commitdb76bcb593e34948dab2709bcb7b6c1139a37c72 (patch)
tree99b3ee870b2e6225910799d81f3a6f51b19c13f3 /app/Model
parent7b53d47d467115a173c642526a7d2474a22f88fb (diff)
Minor code improvements
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/File.php2
-rw-r--r--app/Model/Task.php2
2 files changed, 1 insertions, 3 deletions
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);