summaryrefslogtreecommitdiff
path: root/app/Template/task_list
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task_list')
-rw-r--r--app/Template/task_list/header.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Template/task_list/header.php b/app/Template/task_list/header.php
index 6501a919..7704e2df 100644
--- a/app/Template/task_list/header.php
+++ b/app/Template/task_list/header.php
@@ -7,10 +7,12 @@
<?php endif ?>
</div>
<div class="table-list-header-menu">
- <?php if ($this->user->hasSubtaskListActivated()): ?>
- <?= $this->url->icon('tasks', t('Hide subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'hide_subtasks' => 1)) ?>
- <?php else: ?>
- <?= $this->url->icon('tasks', t('Show subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'show_subtasks' => 1)) ?>
+ <?php if (isset($project)): ?>
+ <?php if ($this->user->hasSubtaskListActivated()): ?>
+ <?= $this->url->icon('tasks', t('Hide subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'hide_subtasks' => 1)) ?>
+ <?php else: ?>
+ <?= $this->url->icon('tasks', t('Show subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'show_subtasks' => 1)) ?>
+ <?php endif ?>
<?php endif ?>
<?= $this->render('task_list/sort_menu', array('paginator' => $paginator)) ?>