summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_comments.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index d687cde..9961554 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -1,5 +1,11 @@
<?php
-$base_id = pkgbase_from_pkgid($row['ID']);
+if (isset($row['BaseID'])) {
+ /* On a package details page. */
+ $base_id = $row['BaseID'];
+} else {
+ /* On a package base details page. */
+ $base_id = $row['ID'];
+}
$count = pkgbase_comments_count($base_id);
?>
<div id="news">