1
1
Fork 0

Merge pull request #3716 from annando/bugfix-mail

Bugfix: Mails weren't created
This commit is contained in:
Tobias Diekershoff 2017-09-19 15:10:22 +02:00 committed by GitHub
commit 3e8dc38180

View file

@ -65,7 +65,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
'subject' => $subject, 'recips' => $handles); 'subject' => $subject, 'recips' => $handles);
$r = dba::insert('conv', $fields); $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)) if (dbm::is_result($r))
$convid = $r['id']; $convid = $r['id'];
} }
@ -191,7 +191,7 @@ function send_wallmessage($recipient='', $body='', $subject='', $replyto=''){
'subject' => $subject, 'recips' => $handles); 'subject' => $subject, 'recips' => $handles);
$r = dba::insert('conv', $fields); $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)) { if (!dbm::is_result($r)) {
logger('send message: conversation not found.'); logger('send message: conversation not found.');
return -4; return -4;