messages need subjects to link to

This commit is contained in:
Mike Macgirvin 2010-10-29 23:00:10 -07:00
parent 30fe8e39d6
commit 2fc4677173

View file

@ -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'])
);