X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmessage.php;h=1524bfd369e9012e42b131ba36a5f009743c24b4;hb=2a23a7e8405cde73ad95e1c0103fe49df3a883f9;hp=114f558dbf9b4c27754db791f90e899ed8fb93b0;hpb=01d36785b052f722c982700bcfe29e7ea26d1321;p=friendica.git diff --git a/mod/message.php b/mod/message.php index 114f558dbf..1524bfd369 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']) ); @@ -69,7 +72,6 @@ function message_post(&$a) { $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); $proc_debug = get_config('system','proc_debug'); -notice("\"$php_path\" \"include/notifier.php\" \"mail\" \"$post_id\" $proc_debug &"); if($post_id) { proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"mail\" \"$post_id\" $proc_debug &", @@ -84,6 +86,8 @@ notice("\"$php_path\" \"include/notifier.php\" \"mail\" \"$post_id\" $proc_debug } function message_content(&$a) { + + $o = ''; $o .= ''; if(! local_user()) { @@ -154,7 +158,7 @@ function message_content(&$a) { $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); - $select .= contact_select('messageto','message-to-select', false, 4, true); + $select = contact_select('messageto','message-to-select', false, 4, true); $tpl = load_view_file('view/prv_message.tpl'); $o .= replace_macros($tpl,array( '$header' => t('Send Private Message'),