Skip to content
Permalink
Browse files

Merge pull request #110 from kaldor/fix-tombstone-counting-for-no-tom…

…bstones

Fixed warning when there are no tombstone node at all / props @oppiansteve
  • Loading branch information
radgeek committed Dec 30, 2019
2 parents 90f994f + e220ec9 commit 15b1a2b38fa9e5c828169949020b34509ebae237
Showing with 1 addition and 1 deletion.
  1. +1 −1 syndicatedlink.class.php
@@ -304,7 +304,7 @@ public function poll ($crash_ts = NULL) {
// Check for use of Atom tombstones. Spec:
// <http://tools.ietf.org/html/draft-snell-atompub-tombstones-18>
$tombstones = $this->simplepie->get_feed_tags('http://purl.org/atompub/tombstones/1.0', 'deleted-entry');
if (count($tombstones) > 0) :
if (!is_null($tombstones) && count($tombstones) > 0) :
foreach ($tombstones as $tombstone) :
$ref = NULL;
foreach (array('', 'http://purl.org/atompub/tombstones/1.0') as $ns) :

0 comments on commit 15b1a2b

Please sign in to comment.
You can’t perform that action at this time.