[freenet-cvs] r12939 - trunk/freenet/src/freenet/clients/http

fred at freenetproject.org fred at freenetproject.org
Wed Apr 25 13:22:07 UTC 2007


Author: fred
Date: 2007-04-25 13:22:07 +0000 (Wed, 25 Apr 2007)
New Revision: 12939

Modified:
   trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
Log:
Fix : empty BookmarkCategory bug

Modified: trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java	2007-04-25 10:24:28 UTC (rev 12938)
+++ trunk/freenet/src/freenet/clients/http/BookmarkEditorToadlet.java	2007-04-25 13:22:07 UTC (rev 12939)
@@ -88,7 +88,8 @@
 				actions.addChild("a", "href", "?action=down&bookmark=" + catPath).addChild("img", new String[] {"src", "alt", "title"}, new String[] {"/static/icon/go-down.png", "down", "Go down"});
 			
 			subCat.addChild(actions);
-			addCategoryToList(cats.get(i), catPath, list.addChild("li").addChild("ul"));
+			if(cats.get(i).size() != 0)
+				addCategoryToList(cats.get(i), catPath, list.addChild("li").addChild("ul"));
 		}
 	}
 




More information about the cvs mailing list