aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/feedutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 96e5fdc6b..68af88256 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1025,13 +1025,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;
}
}