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 21:01:51 -0700
commit8ebb0006507e12f8570ea126c4146ea14b71fd7f (patch)
tree820c290627ca3245c87c8c5a965e2eb590a52abe /include/channel.php
parent14229d0dd3205ea1e85d2c26d6c79bd68d19eda3 (diff)
downloadvolse-hubzilla-8ebb0006507e12f8570ea126c4146ea14b71fd7f.tar.gz
volse-hubzilla-8ebb0006507e12f8570ea126c4146ea14b71fd7f.tar.bz2
volse-hubzilla-8ebb0006507e12f8570ea126c4146ea14b71fd7f.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 31dca1ae5..2284b3004 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -736,14 +736,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;
}