]> git.mxchange.org Git - friendica.git/commitdiff
messages need subjects to link to
authorMike Macgirvin <mike@macgirvin.com>
Sat, 30 Oct 2010 06:00:10 +0000 (23:00 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sat, 30 Oct 2010 06:00:10 +0000 (23:00 -0700)
mod/message.php

index 011a5a67bd7cd93e16578dde0b4d1a741a548ded..a168e208aef0edffc6a345845f1bb759c2ec54ab 100644 (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'])
        );