[AppDB 1/5] version: Only display comments section in case version has maintainers
André Hentschel
nerv at dawncrow.de
Thu Nov 17 12:31:49 CST 2016
---
include/version.php | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/version.php b/include/version.php
index 6e4d890..1dd448e 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1180,9 +1180,12 @@ class version {
echo note::displayNotesForEntry($this->iVersionId);
- // Comments Section
- if($this->iVersionId)
- Comment::view_app_comments($this->iVersionId);
+ if(sizeof($aMaintainers)>0)
+ {
+ // Display comments section in case version has maintainers
+ if($this->iVersionId)
+ Comment::view_app_comments($this->iVersionId);
+ }
}
public static function lookup_name($versionId)
--
2.7.4
More information about the wine-patches
mailing list