diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2018-05-12 13:35:11 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2018-05-12 13:35:11 +0200 |
commit | 4b8b2e3eb139518ea1abd5875135bb39a9f0c187 (patch) | |
tree | a522f7fc813dcb628be43518776ae96439f070e6 /web/template/pkg_search_results.php | |
parent | 8838490665c1bc7f682a4853be18c2b758328fb0 (diff) | |
download | aur-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/pkg_search_results.php')
-rw-r--r-- | web/template/pkg_search_results.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index d7512b1e..7c5ad03b 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -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> |