SQL error - private message conversation lookup

This commit is contained in:
friendica 2014-10-06 19:37:51 -07:00
parent 5da8e56f25
commit 03585b8f88

View File

@ -50,7 +50,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
// look for any existing conversation structure // look for any existing conversation structure
if(strlen($replyto)) { if(strlen($replyto)) {
$r = q("select convid from mail where uid = %d and ( mid = '%s' or parent_mid = '%s' ) limit 1", $r = q("select convid from mail where channel_id = %d and ( mid = '%s' or parent_mid = '%s' ) limit 1",
intval(local_user()), intval(local_user()),
dbesc($replyto), dbesc($replyto),
dbesc($replyto) dbesc($replyto)