Commit 3088fd0f authored by Mark Weiman's avatar Mark Weiman Committed by Lukas Fleischer
Browse files

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: default avatarMark Weiman <mark.weiman@markzz.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent a9048bb0
<?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);
?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment