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
|
@ -15,7 +15,7 @@ if (!isset($count)) {
|
|||
<?php endif; ?>
|
||||
</h3>
|
||||
|
||||
<?php while (list($indx, $row) = each($comments)): ?>
|
||||
<?php foreach ($comments as $indx => $row): ?>
|
||||
<?php
|
||||
$date_fmtd = date('Y-m-d H:i', $row['CommentTS']);
|
||||
if ($row['UserName']) {
|
||||
|
@ -113,7 +113,7 @@ if (!isset($count)) {
|
|||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if ($count > 10 && !isset($_GET['comments']) && !isset($pinned)): ?>
|
||||
<h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue