]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Mails weren't created
authorMichael <heluecht@pirati.ca>
Tue, 19 Sep 2017 12:59:24 +0000 (12:59 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 19 Sep 2017 12:59:24 +0000 (12:59 +0000)
include/message.php

index 59146214164f92c92094eacc22bf563308e436dd..d6b1601110e9bb58f06cbd853e140d5f41e257d6 100644 (file)
@@ -65,7 +65,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
                                'subject' => $subject, 'recips' => $handles);
                $r = dba::insert('conv', $fields);
 
-               $r = dba::select('conv', array('id', array('guid' => $conv_guid, 'uid' => local_user())), array('limit' => 1));
+               $r = dba::select('conv', array('id'), array('guid' => $conv_guid, 'uid' => local_user()), array('limit' => 1));
                if (dbm::is_result($r))
                        $convid = $r['id'];
        }
@@ -191,7 +191,7 @@ function send_wallmessage($recipient='', $body='', $subject='', $replyto=''){
                        'subject' => $subject, 'recips' => $handles);
        $r = dba::insert('conv', $fields);
 
-       $r = dba::select('conv', array('id', array('guid' => $conv_guid, 'uid' => $recipient['uid'])), array('limit' => 1));
+       $r = dba::select('conv', array('id'), array('guid' => $conv_guid, 'uid' => $recipient['uid']), array('limit' => 1));
        if (!dbm::is_result($r)) {
                logger('send message: conversation not found.');
                return -4;