fix bug with empty tos

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:57:53 +02:00
parent 78547922f3
commit 9f39aad6af

View File

@ -226,7 +226,7 @@ echo $this->getData('nav')->render(); ?>
<?php
$tos = $element->getTo();
if (\count($tos) > 1
|| $tos[0]->getRelation()->getId() !== $task->getCreatedBy()->getId()
|| (\count($tos) > 0 && $tos[0]->getRelation()->getId() !== $task->getCreatedBy()->getId())
) : ?>
<section class="box wf-100">
<div class="inner">