summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r--web/template/pkg_comments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 7d9bedcc..3e5e5cc5 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -15,7 +15,7 @@ if (!isset($count)) {
<?php endif; ?>
</h3>
- <?php while (list($indx, $row) = each($comments)): ?>
+ <?php foreach ($comments as $indx => $row): ?>
<?php
$date_fmtd = date('Y-m-d H:i', $row['CommentTS']);
if ($row['UserName']) {
@@ -113,7 +113,7 @@ if (!isset($count)) {
<?php endif; ?>
</div>
</div>
- <?php endwhile; ?>
+ <?php endforeach; ?>
<?php if ($count > 10 && !isset($_GET['comments']) && !isset($pinned)): ?>
<h3>