Fix increment to pre-increment

This commit is contained in:
Dennis Eichhorn 2019-05-19 19:08:35 +02:00
parent 2f578babfe
commit 4f500dde55

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot> <tfoot>
<tr><td colspan="5"> <tr><td colspan="5">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : $c++; <?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>