summaryrefslogtreecommitdiffstats
path: root/web/template/pkgreq_results.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2018-05-12 13:35:11 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2018-05-12 13:35:11 +0200
commit4b8b2e3eb139518ea1abd5875135bb39a9f0c187 (patch)
treea522f7fc813dcb628be43518776ae96439f070e6 /web/template/pkgreq_results.php
parent8838490665c1bc7f682a4853be18c2b758328fb0 (diff)
downloadaur-4b8b2e3eb139518ea1abd5875135bb39a9f0c187.tar.gz
aur-4b8b2e3eb139518ea1abd5875135bb39a9f0c187.tar.xz
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>
Diffstat (limited to 'web/template/pkgreq_results.php')
-rw-r--r--web/template/pkgreq_results.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php
index e02cff3e..1a565c3e 100644
--- a/web/template/pkgreq_results.php
+++ b/web/template/pkgreq_results.php
@@ -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>