summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Grossenbacher2011-04-11 15:23:52 (GMT)
committer Sascha Grossenbacher2011-04-11 15:23:52 (GMT)
commita4727b6d02b98c843c9f3081bef1487849bfb2cf (patch)
tree779ccde5dd059cc06de1fa29551f11ba62085178
parentaf6973d18043c9677e0c3bbbc9e2cbc5401a7584 (diff)
Issue #1104234 by dragon_eater: Fixed can not sent a message consisting only of the string '0'.
-rw-r--r--privatemsg.module2
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.'));
}