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/html/rss.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/html/rss.php')
-rw-r--r-- | web/html/rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/rss.php b/web/html/rss.php index 8585d81d..d6e7825a 100644 --- a/web/html/rss.php +++ b/web/html/rss.php @@ -40,7 +40,7 @@ $rss->image = $image; #Get the latest packages and add items for them $packages = latest_pkgs(20); -while (list($indx, $row) = each($packages)) { +foreach ($packages as $indx => $row) { $item = new FeedItem(); $item->title = $row["Name"]; $item->link = "{$protocol}://{$host}" . get_pkg_uri($row["Name"]); |