From fdc010bb1b9f2998ea950527f4bc9f136d4cf080 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 19 Sep 2017 12:59:24 +0000 Subject: [PATCH] Bugfix: Mails weren't created --- include/message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/message.php b/include/message.php index 5914621416..d6b1601110 100644 --- a/include/message.php +++ b/include/message.php @@ -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; -- 2.39.5