From 2fc467717344ddae5c192c427ca037e84a9056e9 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Fri, 29 Oct 2010 23:00:10 -0700 Subject: [PATCH] messages need subjects to link to --- mod/message.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/message.php b/mod/message.php index 011a5a67bd..a168e208ae 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']) );