diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-22 18:49:34 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-22 18:49:34 -0500 |
commit | c49d46718a07afeea017aa90a60320587211dc49 (patch) | |
tree | 68499594b8d2f6a26411249aaff12b87b4ee3628 /app/Action | |
parent | 77e10d25829f3523a168bf61424fac99a539f8be (diff) |
Some refactoring for PHP 5.3
Diffstat (limited to 'app/Action')
-rw-r--r-- | app/Action/CommentCreation.php | 2 | ||||
-rw-r--r-- | app/Action/TaskCreation.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Action/CommentCreation.php b/app/Action/CommentCreation.php index 3543403d..5dbe32f1 100644 --- a/app/Action/CommentCreation.php +++ b/app/Action/CommentCreation.php @@ -61,7 +61,7 @@ class CommentCreation extends Base */ public function doAction(array $data) { - return $this->comment->create(array( + return (bool) $this->comment->create(array( 'reference' => $data['reference'], 'comment' => $data['comment'], 'task_id' => $data['task_id'], diff --git a/app/Action/TaskCreation.php b/app/Action/TaskCreation.php index 5715310f..0c791688 100644 --- a/app/Action/TaskCreation.php +++ b/app/Action/TaskCreation.php @@ -59,7 +59,7 @@ class TaskCreation extends Base */ public function doAction(array $data) { - return $this->taskCreation->create(array( + return (bool) $this->taskCreation->create(array( 'project_id' => $data['project_id'], 'title' => $data['title'], 'reference' => $data['reference'], |