aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.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/channel.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/channel.php')
-rw-r--r--include/channel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php
index 77a4ba60f..b06c1994f 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -737,14 +737,14 @@ function identity_basic_export($channel_id, $sections = null) {
$ret['conv'] = $r;
}
- $r = q("select * from mail where mail.uid = %d",
+ $r = q("select * from mail where channel_id = %d",
intval($channel_id)
);
if($r) {
$m = array();
foreach($r as $rr) {
xchan_mail_query($rr);
- $m[] = mail_encode($rr,true);
+ $m[] = encode_mail($rr,true);
}
$ret['mail'] = $m;
}