From: gustavf Date: Wed, 28 Jun 2000 10:49:02 +0000 (+0000) Subject: No longer requires both body and subject. One of them is enough. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1e62a204a9ceb60f3cde686d60efc85436a2fbd2;p=squirrelmail.git No longer requires both body and subject. One of them is enough. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@561 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index f3324d62..daae7b63 100644 --- a/src/compose.php +++ b/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()