From 6eefd9b7629830b4a74b28c09975d8a984138bf1 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 5 Aug 2023 21:57:11 +0300 Subject: [PATCH] fix undefined variable --- crontab/crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crontab/crawler.php b/crontab/crawler.php index bc028ac..932a197 100644 --- a/crontab/crawler.php +++ b/crontab/crawler.php @@ -121,7 +121,7 @@ foreach ($db->getHostCrawlQueue(CRAWL_HOST_LIMIT, time() - CRAWL_HOST_SECONDS_OF if ($sitemapLink = $robots->getSitemap()) { // Replace relative paths - $sitemapURL = sprintf('%s/%s', $queueHost->url, trim(str_ireplace($hostCrawlQueue->url, '', $sitemapLink), '/')); + $sitemapURL = sprintf('%s/%s', $queueHost->url, trim(str_ireplace($queueHost->url, '', $sitemapLink), '/')); // Set default path } else {