Skip to content
Permalink
Browse files

Fixed warning when there are no tombstone node at all

  • Loading branch information
oppiansteve committed Dec 30, 2019
1 parent 67b6c5a commit e220ec955a90d2763ed357a5dac3400478cfbc0e
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 e220ec9

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