aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-29 23:00:10 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-29 23:00:10 -0700
commit2fc467717344ddae5c192c427ca037e84a9056e9 (patch)
tree0ae0878e19b44e89ba0a38404107983cfd7d5df0 /mod/message.php
parent30fe8e39d64c841b13c04f16c6dc290893bd9f79 (diff)
downloadvolse-hubzilla-2fc467717344ddae5c192c427ca037e84a9056e9.tar.gz
volse-hubzilla-2fc467717344ddae5c192c427ca037e84a9056e9.tar.bz2
volse-hubzilla-2fc467717344ddae5c192c427ca037e84a9056e9.zip
messages need subjects to link to
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'])
);