diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-03 18:32:51 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-03 18:32:51 -0400 |
commit | 5a29cccc959dfd0be5fdc279ac1170d2db0b3040 (patch) | |
tree | 1ea6c149e9b50f95313454bfbcb4f614180d70a5 /app/Controller/Base.php | |
parent | 91a5ec08856f5ef6a64d181ef4de700c0436026b (diff) |
Various fixes for PHPAnalyzer
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r-- | app/Controller/Base.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index cebecaca..10bf962f 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -44,6 +44,7 @@ use Symfony\Component\EventDispatcher\Event; * @property \Model\ProjectActivity $projectActivity * @property \Model\ProjectDailySummary $projectDailySummary * @property \Model\Subtask $subtask + * @property \Model\SubtaskForecast $subtaskForecast * @property \Model\Swimlane $swimlane * @property \Model\Task $task * @property \Model\Link $link @@ -336,7 +337,7 @@ abstract class Base { $task = $this->taskFinder->getDetails($this->request->getIntegerParam('task_id')); - if (! $task) { + if (empty($task)) { $this->notfound(); } @@ -355,7 +356,7 @@ abstract class Base $project_id = $this->request->getIntegerParam('project_id', $project_id); $project = $this->project->getById($project_id); - if (! $project) { + if (empty($project)) { $this->session->flashError(t('Project not found.')); $this->response->redirect('?controller=project'); } |