summaryrefslogtreecommitdiffstats
path: root/web/template/pkgbase_details.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/pkgbase_details.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/pkgbase_details.php')
-rw-r--r--web/template/pkgbase_details.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php
index de55da03..8a6e2b44 100644
--- a/web/template/pkgbase_details.php
+++ b/web/template/pkgbase_details.php
@@ -126,10 +126,10 @@ endif;
<?php if (count($pkgs) > 0): ?>
<ul>
<?php
- while (list($k, $pkg) = each($pkgs)):
+ foreach ($pkgs as $k => $pkg):
?>
<li><a href="<?= htmlspecialchars(get_pkg_uri($pkg), ENT_QUOTES); ?>" title="<?= __('View packages details for').' '. htmlspecialchars($pkg) ?>"><?= htmlspecialchars($pkg) ?></a></li>
- <?php endwhile; ?>
+ <?php endforeach; ?>
</ul>
<?php endif; ?>
</div>