www: d9a28d20: Check if these strings are empty

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Sep 3 15:55:46 EDT 2009


-----------------------------------------------------------------
Revision: d9a28d2077e99a29022eaf0b023bbd28d19d40a2
Ancestor: e2604e1479b504dcae9ed6b0c1fccdb446381d60
Author: markdoliner at pidgin.im
Date: 2009-09-03T19:51:53
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/d9a28d2077e99a29022eaf0b023bbd28d19d40a2

Modified files:
        htdocs/news/security/index.php

ChangeLog: 

Check if these strings are empty

-------------- next part --------------
============================================================
--- htdocs/news/security/index.php	e3bd217f84d2be611eaaa5500c20b03ab184b294
+++ htdocs/news/security/index.php	6285ede42db9d4301fb98a6e7f47b6ad2d0d0976
@@ -538,7 +538,7 @@ if ($stop > 0) {
   <tr><th>Title</th><td><?=$vun['title']?></td></tr>
   <tr><th>Date</th><td><?=$vun['date']?></td></tr>
   <?
-	if (array_key_exists('cve', $vun)) {
+	if (array_key_exists('cve', $vun) && !empty($vun['cve'])) {
   ?>
   <tr><th>CVE Name</th><td><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=<?=$vun['cve']?>"><?=$vun['cve']?></a></td></tr>
   <?
@@ -555,7 +555,7 @@ if ($stop > 0) {
   <?
 	// TODO: We should treat fixrevisions like a comma delimited list of
 	//       revisions and linkify each one individually.
-    if (array_key_exists('fixrevisions', $vun)) {
+    if (array_key_exists('fixrevisions', $vun) && !empty($vun['fixrevisions'])) {
   ?>
   <tr><th>Fixed in Revision</th><td><a href="http://developer.pidgin.im/viewmtn/revision/info/<?=$vun['fixrevisions']?>"><?=$vun['fixrevisions']?></a></td></tr>
   <?


More information about the Commits mailing list