Fix increment to pre-increment

This commit is contained in:
Dennis Eichhorn 2019-05-19 19:08:35 +02:00
parent 27f8011488
commit 3849bd717c
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ echo $this->getData('nav')->render(); ?>
<td><?= $this->getHtml('Created') ?>
<tfoot>
<tbody>
<?php $c = 0; foreach ($workflows as $key => $workflow) : $c++;
<?php $c = 0; foreach ($workflows as $key => $workflow) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $workflow->getId());
$color = 'darkred';
if ($workflow->getStatus() === \Modules\Workflow\Models\WorkflowStatus::DONE) { $color = 'green'; }

View File

@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
</section>
<?php $c = 0;
foreach ($elements as $key => $element) : $c++;
foreach ($elements as $key => $element) : ++$c;
if ($element->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
elseif ($element->getStatus() === \Modules\Tasks\Models\TaskStatus::OPEN) { $color = 'darkblue'; }
elseif ($element->getStatus() === \Modules\Tasks\Models\TaskStatus::WORKING) { $color = 'purple'; }