[sword-cvs] swordweb passagestudy.jsp,1.26,1.27

sword@www.crosswire.org sword@www.crosswire.org
Fri, 7 Nov 2003 22:34:42 -0700


Update of /usr/local/cvsroot/swordweb
In directory www:/tmp/cvs-serv23583

Modified Files:
	passagestudy.jsp 
Log Message:
conditionally include <ul> only if there are items


Index: passagestudy.jsp
===================================================================
RCS file: /usr/local/cvsroot/swordweb/passagestudy.jsp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- passagestudy.jsp	8 Nov 2003 05:15:00 -0000	1.26
+++ passagestudy.jsp	8 Nov 2003 05:34:39 -0000	1.27
@@ -93,9 +93,11 @@
 			<%
 			}
 			%>
-		<ul>
 		<%
-			if (open) {
+			if ((open) && (modInfo.length > 0)) {
+%>
+		<ul>
+<%
 				for (int i = 0; i < modInfo.length; i++) {
 					if (modInfo[i].category.equals(SwordOrb.BIBLES)) {
 						SWModule module = mgr.getModuleByName(modInfo[i].name);
@@ -104,9 +106,11 @@
 			<%
 					}
 				}
+%>
+		</ul>
+<%
 			}
 		%>
-		</ul>
 		</div>
 	</tiles:put>
 	<tiles:put name="sidebar_right" type="string">