mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00: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
|
@ -66,7 +66,7 @@ if (!$result): ?>
|
|||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php while (list($indx, $row) = each($searchresults)): ?>
|
||||
<?php foreach ($searchresults as $indx => $row): ?>
|
||||
<tr class="<?= ($indx % 2 == 0) ? 'odd' : 'even' ?>">
|
||||
<?php if ($SID && $show_headers): ?>
|
||||
<td><input type="checkbox" name="IDs[<?= $row["PackageBaseID"] ?>]" value="1" /></td>
|
||||
|
@ -100,7 +100,7 @@ if (!$result): ?>
|
|||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endwhile; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue