aboutsummaryrefslogtreecommitdiffstats
path: root/include/message.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-31 20:59:36 -0700
committerzotlabs <mike@macgirvin.com>2017-05-31 20:59:36 -0700
commitfc98bd1563ee71974d5d5c40d6ed8ed0c50f3c37 (patch)
tree270db57f93d2fc6e20c61690c884bfa65ec9163b /include/message.php
parent7ccf47f4c69e6deecf33f982ae3ea7497ac10ee6 (diff)
downloadvolse-hubzilla-fc98bd1563ee71974d5d5c40d6ed8ed0c50f3c37.tar.gz
volse-hubzilla-fc98bd1563ee71974d5d5c40d6ed8ed0c50f3c37.tar.bz2
volse-hubzilla-fc98bd1563ee71974d5d5c40d6ed8ed0c50f3c37.zip
minor export issue with mail
Diffstat (limited to 'include/message.php')
-rw-r--r--include/message.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/message.php b/include/message.php
index a394a411d..5458eeb0e 100644
--- a/include/message.php
+++ b/include/message.php
@@ -452,10 +452,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);