first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / servlet / ServletModuleComment.java
index 22ca7d6..03d4235 100755 (executable)
@@ -36,7 +36,7 @@ public class ServletModuleComment extends ServletModule
        public static ServletModule getInstance() { return instance; }
 
        private ServletModuleComment() {
-               theLog = Logfile.getInstance(this.getClass().getName());
+               theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("ServletModule.Comment.Logfile"));
                templateListString = MirConfig.getProp("ServletModule.Comment.ListTemplate");
                templateObjektString = MirConfig.getProp("ServletModule.Comment.ObjektTemplate");
                templateConfirmString = MirConfig.getProp("ServletModule.Comment.ConfirmTemplate");
@@ -92,7 +92,7 @@ public class ServletModuleComment extends ServletModule
 
                                if (query_text!=null || query_is_published!=null ) {
                                        EntityList theList = mainModule.getByWhereClause(whereClause, order, (new Integer(offset)).intValue());
-                                       if (theList!=null) {
+                                       if (theList!=null && theList.size()>0) {
 
                                                //make articleHash for comment
                                                StringBuffer buf= new StringBuffer("id in (");boolean first=true;