Browse Source

No longer requires both body and subject. One of them is enough.

gustavf 25 years ago
parent
commit
0d77894b63
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/compose.php

+ 2 - 6
src/compose.php

@@ -258,18 +258,14 @@
           error message, show=true **/
       global $body, $send_to, $subject, $color;
 
-      if ($body == "") {
+      if ($body == "" && $subject == "") {
          if ($show)
-            plain_error_message(_("You have not entered a message body."), $color);
+            plain_error_message(_("You have not entered a message body or a subject."), $color);
          return false;
       } else if ($send_to == "") {
          if ($show)
             plain_error_message(_("You have not filled in the \"To:\" field."), $color);
          return false;
-      } else if ($subject == "") {
-         if ($show)
-            plain_error_message(_("You have not entered a subject."), $color);
-         return false;
       }
       return true;
    } // function checkInput()