aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/message.php')
-rw-r--r--mod/message.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/message.php b/mod/message.php
index 011a5a67b..a168e208a 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -24,6 +24,9 @@ function message_post(&$a) {
return;
}
+ if(! $strlen($subject))
+ $subject = t('[no subject]');
+
$me = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1",
intval($_SESSION['uid'])
);