From a4727b6d02b98c843c9f3081bef1487849bfb2cf Mon Sep 17 00:00:00 2001
From: Sascha Grossenbacher <saschagros@gmail.com>
Date: Mon, 11 Apr 2011 17:23:52 +0200
Subject: [PATCH] Issue #1104234 by dragon_eater: Fixed can not sent a message consisting only of the string '0'.

---
 privatemsg.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/privatemsg.module b/privatemsg.module
index d559b5c..dce0512 100644
--- a/privatemsg.module
+++ b/privatemsg.module
@@ -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.'));
     }
-- 
1.7.4.1

