diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-24 17:14:06 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-24 17:14:06 -0700 |
commit | f1fc2018626a5349000e666278571575f95a7acc (patch) | |
tree | 9afa17d1208c35e79da5fe21fe53ec4deea7ded0 /include/message.php | |
parent | 681f45943bde59577e835fa91bc223d677e6b1ad (diff) | |
download | volse-hubzilla-f1fc2018626a5349000e666278571575f95a7acc.tar.gz volse-hubzilla-f1fc2018626a5349000e666278571575f95a7acc.tar.bz2 volse-hubzilla-f1fc2018626a5349000e666278571575f95a7acc.zip |
not null violation in mail
Diffstat (limited to 'include/message.php')
-rw-r--r-- | include/message.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/message.php b/include/message.php index f5821490d..7cbea3c6b 100644 --- a/include/message.php +++ b/include/message.php @@ -187,10 +187,10 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto=' if($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, attach, mid, parent_mid, created, expires, mail_isreply ) - VALUES ( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )", + $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 ) + VALUES ( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )", intval($channel['channel_account_id']), dbesc($conv_guid), intval(1), @@ -199,6 +199,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto=' dbesc($recipient), dbesc($subject), dbesc($body), + dbesc($sig), dbesc($jattach), dbesc($mid), dbesc($replyto), |