summaryrefslogtreecommitdiffstats
path: root/web/template/tu_last_votes_list.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/tu_last_votes_list.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/tu_last_votes_list.php')
-rw-r--r--web/template/tu_last_votes_list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/tu_last_votes_list.php b/web/template/tu_last_votes_list.php
index 5cff248c..6e852581 100644
--- a/web/template/tu_last_votes_list.php
+++ b/web/template/tu_last_votes_list.php
@@ -11,7 +11,7 @@
<tbody>
<?php if (empty($result)): ?>
<tr><td align="center" colspan="0"><?= __("No results found.") ?></td></tr>
- <?php else: while (list($indx, $row) = each($result)):
+ <?php else: foreach ($result as $indx => $row):
if ($indx % 2):
$c = "even";
else:
@@ -28,7 +28,7 @@
</td>
</tr>
<?php
- endwhile;
+ endforeach;
endif;
?>
</tbody>