diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-27 18:26:56 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-27 18:26:56 -0400 |
commit | 837173cf935a7f5f9c12c69f131a63e0f181d8f3 (patch) | |
tree | 03459e6f07f8628fc9862fb49539a6e381564aef /app | |
parent | 8e1c216130d1afc52fe5be3416486fc942bef424 (diff) |
Fix regression in PR #2439
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/task/show.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Template/task/show.php b/app/Template/task/show.php index 76c572a1..b18c2bca 100644 --- a/app/Template/task/show.php +++ b/app/Template/task/show.php @@ -7,7 +7,7 @@ 'editable' => $this->user->hasProjectAccess('TaskModificationController', 'edit', $project['id']), )) ?> -<?php if(!empty($task['description'])): ?> +<?php if (!empty($task['description'])): ?> <?= $this->hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?> <?= $this->render('task/description', array('task' => $task)) ?> <?php endif ?> @@ -22,7 +22,7 @@ )) ?> <?php endif ?> -<?php if(!empty($internal_links)): ?> +<?php if (!empty($internal_links)): ?> <?= $this->hook->render('template:task:show:before-internal-links', array('task' => $task, 'project' => $project)) ?> <?= $this->render('task_internal_link/show', array( 'task' => $task, @@ -34,7 +34,7 @@ )) ?> <?php endif ?> -<?php if(!empty($external_links)): ?> +<?php if (!empty($external_links)): ?> <?= $this->hook->render('template:task:show:before-external-links', array('task' => $task, 'project' => $project)) ?> <?= $this->render('task_external_link/show', array( 'task' => $task, @@ -43,7 +43,7 @@ )) ?> <?php endif ?> -<?php if(!empty($files)): ?> +<?php if (!empty($files) || !empty($images)): ?> <?= $this->hook->render('template:task:show:before-attachments', array('task' => $task, 'project' => $project)) ?> <?= $this->render('task_file/show', array( 'task' => $task, @@ -52,7 +52,7 @@ )) ?> <?php endif ?> -<?php if(!empty($comments)): ?> +<?php if (!empty($comments)): ?> <?= $this->hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?> <?= $this->render('comments/show', array( 'task' => $task, |