Stop using each()

The each() function has been deprecated as of PHP 7.2.0. Use foreach
loops instead.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2018-05-12 13:35:11 +02:00
parent 8838490665
commit 4b8b2e3eb1
11 changed files with 29 additions and 29 deletions

View file

@ -36,7 +36,7 @@
</thead>
<tbody>
<?php while (list($indx, $row) = each($results)): ?>
<?php foreach ($results as $indx => $row): ?>
<?php
$idle_time = config_get_int('options', 'request_idle_time');
$due = ($row['Open'] && time() - intval($row['RequestTS']) > $idle_time);
@ -100,7 +100,7 @@
<td><?= __("unknown") ?></td>
<?php endif; ?>
</tr>
<?php endwhile; ?>
<?php endforeach; ?>
</tbody>
</table>