aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-12 17:16:21 -0700
committerzotlabs <mike@macgirvin.com>2017-07-12 17:16:21 -0700
commitaa70cbbf21950e37ab9b5198de76ded0f1c8351d (patch)
tree8de2c2c107769f1fd602c2834315da75465d903a /include
parent6db717a1a09f936f72d5c6c7643b0caa81a40667 (diff)
downloadvolse-hubzilla-aa70cbbf21950e37ab9b5198de76ded0f1c8351d.tar.gz
volse-hubzilla-aa70cbbf21950e37ab9b5198de76ded0f1c8351d.tar.bz2
volse-hubzilla-aa70cbbf21950e37ab9b5198de76ded0f1c8351d.zip
fix typos
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index fac2a272c..b1fcce9d3 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1151,17 +1151,19 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
// check comment permissions on the parent
- $r = q("select * from item where parent_mid = '%s' and parent_mid = mid and uid = %d limit 1"
+ $parent_item = 0;
+
+ $r = q("select * from item where parent_mid = '%s' and parent_mid = mid and uid = %d limit 1",
dbesc($pmid),
intval($importer['channel_id'])
);
if($r) {
$parent_item = $r[0];
-
- if(intval($parent_item['item_nocomment']) || $parent_item['comment_policy'] === 'none'
- || ($parent_item['comments_closed'] > NULL_DATE && $parent_item['comments_closed'] < datetime_convert())) {
- logger('comments disabled for post ' . $parent_item['mid']);
- continue;
+ if(intval($parent_item['item_nocomment']) || $parent_item['comment_policy'] === 'none'
+ || ($parent_item['comments_closed'] > NULL_DATE && $parent_item['comments_closed'] < datetime_convert())) {
+ logger('comments disabled for post ' . $parent_item['mid']);
+ continue;
+ }
}
$allowed = false;