not null violation in mail
This commit is contained in:
parent
681f45943b
commit
f1fc201862
@ -187,10 +187,10 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
|||||||
if($body)
|
if($body)
|
||||||
$body = str_rot47(base64url_encode($body));
|
$body = str_rot47(base64url_encode($body));
|
||||||
|
|
||||||
|
$sig = ''; // placeholder
|
||||||
|
|
||||||
|
$r = q("INSERT INTO mail ( account_id, conv_guid, mail_obscured, channel_id, from_xchan, to_xchan, title, body, sig, attach, mid, parent_mid, created, expires, mail_isreply )
|
||||||
$r = q("INSERT INTO mail ( account_id, conv_guid, mail_obscured, channel_id, from_xchan, to_xchan, title, body, attach, mid, parent_mid, created, expires, mail_isreply )
|
VALUES ( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )",
|
||||||
VALUES ( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )",
|
|
||||||
intval($channel['channel_account_id']),
|
intval($channel['channel_account_id']),
|
||||||
dbesc($conv_guid),
|
dbesc($conv_guid),
|
||||||
intval(1),
|
intval(1),
|
||||||
@ -199,6 +199,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
|||||||
dbesc($recipient),
|
dbesc($recipient),
|
||||||
dbesc($subject),
|
dbesc($subject),
|
||||||
dbesc($body),
|
dbesc($body),
|
||||||
|
dbesc($sig),
|
||||||
dbesc($jattach),
|
dbesc($jattach),
|
||||||
dbesc($mid),
|
dbesc($mid),
|
||||||
dbesc($replyto),
|
dbesc($replyto),
|
||||||
|
Reference in New Issue
Block a user