diff options
-rw-r--r-- | include/identity.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php index 5a3861b31..23c099bbd 100644 --- a/include/identity.php +++ b/include/identity.php @@ -625,6 +625,18 @@ function identity_export_year($channel_id,$year) { $ret['item'][] = encode_item($rr,true); } + + $r = q("select item_id.*, item.mid from item_id left join item on item_id.iid = item.id where item_id.uid = %d + and item.created >= '%s' and item.created < '%s' order by created ", + intval($channel_id), + dbesc($mindate), + dbesc($maxdate) + ); + + if($r) + $ret['item_id'] = $r; + + return $ret; } |