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
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue