minor export issue with mail

This commit is contained in:
zotlabs
2017-05-31 20:59:36 -07:00
parent 14229d0dd3
commit 8ebb000650
2 changed files with 8 additions and 6 deletions

View File

@@ -441,10 +441,12 @@ function private_messages_drop($channel_id, $messageitem_id, $drop_conversation
intval($channel_id)
);
if($z) {
q("delete from conv where guid = '%s' and uid = %d",
dbesc($x[0]['conv_guid']),
intval($channel_id)
);
if($x[0]['conv_guid']) {
q("delete from conv where guid = '%s' and uid = %d",
dbesc($x[0]['conv_guid']),
intval($channel_id)
);
}
$m['mail'] = array();
foreach($z as $zz) {
xchan_mail_query($zz);