summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2015-12-12 01:01:30 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2015-12-12 15:09:44 +0100
commit3088fd0f389dbe4be1c7e62931ed18658ca6d7a2 (patch)
treee79e0fa2650d7ada8810d9ac89ea26f7c0049d9b /web
parenta9048bb07ff71e992cefaccb6898e6b993bad99b (diff)
downloadaur-3088fd0f389dbe4be1c7e62931ed18658ca6d7a2.tar.gz
aur-3088fd0f389dbe4be1c7e62931ed18658ca6d7a2.tar.xz
Remove reassignment of base_id in pkg_comments.php
Removes reassignment of $base_id in web/template/pkg_comments.php as it is assigned in both pkgbase_display_details() and pkg_display_details(). Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_comments.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 21ce16f4..15547cef 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -1,11 +1,4 @@
<?php
-if (isset($row['BaseID'])) {
- /* On a package details page. */
- $base_id = $row['BaseID'];
-} else {
- /* On a package base details page. */
- $base_id = $row['ID'];
-}
$include_deleted = has_credential(CRED_COMMENT_VIEW_DELETED);
$count = pkgbase_comments_count($base_id, $include_deleted);
?>