diff options
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/rss.php | 2 | ||||
-rw-r--r-- | web/html/voters.php | 4 |
2 files changed, 3 insertions, 3 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"]); diff --git a/web/html/voters.php b/web/html/voters.php index 997186d8..bacbcfc8 100644 --- a/web/html/voters.php +++ b/web/html/voters.php @@ -16,14 +16,14 @@ if (has_credential(CRED_PKGBASE_LIST_VOTERS)): <h2>Votes for <a href="<?= get_pkgbase_uri($pkgbase_name); ?>"><?= $pkgbase_name ?></a></h2> <div class="boxbody"> <ul> - <?php while (list($indx, $row) = each($votes)): ?> + <?php foreach ($votes as $indx => $row): ?> <li> <a href="<?= get_user_uri($row['Username']); ?>"><?= htmlspecialchars($row['Username']) ?></a> <?php if ($row["VoteTS"] > 0): ?> (<?= date("Y-m-d H:i", intval($row["VoteTS"])) ?>) <?php endif; ?> </li> - <?php endwhile; ?> + <?php endforeach; ?> </ul> </div> </div> |