]> git.mxchange.org Git - friendica.git/blobdiff - include/message.php
Merge pull request #3444 from annando/1705-mail-duplicates
[friendica.git] / include / message.php
index 5bd611f22082dab60d9ad43a21c9076c57c10524..b857bd604b9bafab31bfde24842563ec8fe21a42 100644 (file)
@@ -1,9 +1,8 @@
 <?php
 
-       // send a private message
-
-
+// send a private message
 
+use Friendica\App;
 
 function send_message($recipient=0, $body='', $subject='', $replyto=''){
 
@@ -153,8 +152,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
        if ($post_id) {
                proc_run(PRIORITY_HIGH, "include/notifier.php", "mail", $post_id);
                return intval($post_id);
-       }
-       else {
+       } else {
                return -3;
        }