diff options
Diffstat (limited to 'app/Template/subtask/show.php')
-rw-r--r-- | app/Template/subtask/show.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index 1f0f9bba..aa2a7256 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -1,5 +1,3 @@ -<?php if (! empty($subtasks)): ?> - <?php $first_position = $subtasks[0]['position']; ?> <?php $last_position = $subtasks[count($subtasks) - 1]['position']; ?> @@ -9,6 +7,7 @@ <h2><?= t('Sub-Tasks') ?></h2> </div> + <?php if (! empty($subtasks)): ?> <table class="subtasks-table"> <tr> <th class="column-40"><?= t('Title') ?></th> @@ -86,6 +85,7 @@ </tr> <?php endforeach ?> </table> + <?php endif ?> <?php if (! isset($not_editable)): ?> <form method="post" action="<?= $this->url->href('subtask', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off"> @@ -99,4 +99,3 @@ <?php endif ?> </div> -<?php endif ?> |