From 12452b46d2c2228e854e62a5d10f375f3fbb70f1 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 16 Sep 2023 15:41:03 +0300 Subject: [PATCH] add manifest existion check --- src/crontab/import/feed.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/crontab/import/feed.php b/src/crontab/import/feed.php index 226e171..b39ab34 100644 --- a/src/crontab/import/feed.php +++ b/src/crontab/import/feed.php @@ -56,6 +56,20 @@ try file_get_contents(__DIR__ . '/../../config/nodes.json') ) as $node) { + // Manifest exists + if (empty($node->manifest)) + { + array_push( + $debug['dump'], + sprintf( + _('Manifest URL not provided for this node: %s'), + $node + ) + ); + + continue; + } + // Skip non-condition addresses $error = [];