Commit a4727b6d authored by Sascha Grossenbacher's avatar Sascha Grossenbacher
Browse files

Issue #1104234 by dragon_eater: Fixed can not sent a message consisting only of the string '0'.

parent af6973d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1772,7 +1772,7 @@ function _privatemsg_validate_message(&$message, $form = FALSE) {
  }

  // Don't allow replies without a body.
  if (!empty($message['thread_id']) && empty($message['body'])) {
  if (!empty($message['thread_id']) && ($message['body'] === NULL || $message['body'] === '') ) {
    if ($form) {
      form_set_error('body', t('Disallowed to send reply without a message.'));
    }