aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-17 20:48:49 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-17 20:48:49 +0000
commitc513b66e71d0be4cf947ccac69e9bfc69a5333ce (patch)
tree3a6bb616ff023557010f8f05e671fba6f607ff72 /tmpl
parent472cd881bd9d799ef3680ed0c65a40ca2007ac2b (diff)
downloadmgaadvisories-c513b66e71d0be4cf947ccac69e9bfc69a5333ce.tar
mgaadvisories-c513b66e71d0be4cf947ccac69e9bfc69a5333ce.tar.gz
mgaadvisories-c513b66e71d0be4cf947ccac69e9bfc69a5333ce.tar.bz2
mgaadvisories-c513b66e71d0be4cf947ccac69e9bfc69a5333ce.tar.xz
mgaadvisories-c513b66e71d0be4cf947ccac69e9bfc69a5333ce.zip
Make sure CVE is not displayed when not set
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/advisory.html2
-rw-r--r--tmpl/advisory.txt2
-rw-r--r--tmpl/advisory_item.rss2
3 files changed, 3 insertions, 3 deletions
diff --git a/tmpl/advisory.html b/tmpl/advisory.html
index 394fc7c..1e984c8 100644
--- a/tmpl/advisory.html
+++ b/tmpl/advisory.html
@@ -20,7 +20,7 @@
<br />
[% SET sep = '' %]
- [% IF adv.CVE.list.size != 0 %]
+ [% IF adv.CVE && adv.CVE.list.size != 0 %]
CVE:
[% FOREACH cve IN adv.CVE %]
[% sep %]
diff --git a/tmpl/advisory.txt b/tmpl/advisory.txt
index 016df71..6bfdf0a 100644
--- a/tmpl/advisory.txt
+++ b/tmpl/advisory.txt
@@ -6,7 +6,7 @@ Publication date: [% date.format(adv.status.published, format => '%d %b %Y', gmt
URL: [% config.site_url %]/[% basename.ID(advisory) %].html
Type: [% adv.type %]
Affected Mageia releases: [% adv.src.keys.sort.join(', ') %]
-[% IF adv.CVE.list.size != 0 -%]
+[% IF adv.CVE && adv.CVE.list.size != 0 -%]
CVE: [% adv.CVE.join(",\n ") %]
[% END -%]
diff --git a/tmpl/advisory_item.rss b/tmpl/advisory_item.rss
index 9edfe05..73d9a7b 100644
--- a/tmpl/advisory_item.rss
+++ b/tmpl/advisory_item.rss
@@ -19,7 +19,7 @@
&lt;br /&gt;
[% SET sep = '' %]
- [% IF advisory.CVE.list.size != 0 %]
+ [% IF advisory.CVE && advisory.CVE.list.size != 0 %]
CVE:
[% FOREACH cve IN advisory.CVE %]
[% sep %]