aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 02decca69..5e5056f7c 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1021,13 +1021,13 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
}
}
else {
- $x = q("select mid from item where mid = '%s' and uid = %d limit 1",
+ $x = q("select parent_mid from item where mid = '%s' and uid = %d limit 1",
dbesc($parent_mid),
intval($importer['channel_id'])
);
if($x) {
- $pmid = $x[0]['mid'];
+ $pmid = $x[0]['parent_mid'];
$datarray['parent_mid'] = $pmid;
}
}