mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
8838490665
commit
4b8b2e3eb1
11 changed files with 29 additions and 29 deletions
|
@ -16,14 +16,14 @@ if (has_credential(CRED_PKGBASE_LIST_VOTERS)):
|
|||
<h2>Votes for <a href="<?= get_pkgbase_uri($pkgbase_name); ?>"><?= $pkgbase_name ?></a></h2>
|
||||
<div class="boxbody">
|
||||
<ul>
|
||||
<?php while (list($indx, $row) = each($votes)): ?>
|
||||
<?php foreach ($votes as $indx => $row): ?>
|
||||
<li>
|
||||
<a href="<?= get_user_uri($row['Username']); ?>"><?= htmlspecialchars($row['Username']) ?></a>
|
||||
<?php if ($row["VoteTS"] > 0): ?>
|
||||
(<?= date("Y-m-d H:i", intval($row["VoteTS"])) ?>)
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endwhile; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue