cvs macros
[mir.git] / source / mircoders / servlet / ServletModuleOpenIndy.java
index 2c04c82..2ef627c 100755 (executable)
@@ -40,7 +40,14 @@ import mircoders.producer.*;
  *    adding comments to articles &
  *    open-postings to the newswire
  *
- * @author RK
+ * @author $Author: mh $
+ * @version $Revision: 1.36 $ $Date: 2002/06/29 15:45:20 $
+ *
+ * $Log: ServletModuleOpenIndy.java,v $
+ * Revision 1.36  2002/06/29 15:45:20  mh
+ * cvs macros
+ *
+ *
  */
 
 public class ServletModuleOpenIndy extends ServletModule
@@ -379,8 +386,9 @@ public class ServletModuleOpenIndy extends ServletModule
         String mediaTitle=(String)withValues.get("media_title"+i);
         i++;
 
-        if (mediaTitle==null)
-            mediaTitle = (String)withValues.get("title");
+        if ((mediaTitle == null) || (mediaTitle.length() == 0))
+            throw new ServletModuleUserException("Missing field");
+            //mediaTitle = (String)withValues.get("title");
 
         mediaValues.put("title", mediaTitle);
         mediaValues.put("date", StringUtil.date2webdbDate(new GregorianCalendar()));