From a1893b4cd15e3d6ebb6fe5453e7e7d16370e0a47 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Wed, 20 Apr 2022 13:52:33 +0200 Subject: [PATCH] fix warnings --- lib/speed_up.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/speed_up.php b/lib/speed_up.php index ad16000..81e2cde 100644 --- a/lib/speed_up.php +++ b/lib/speed_up.php @@ -6,6 +6,8 @@ class speed_up public function __construct($profile = 'auto') { + $urls = []; + $article_current = rex_article::getCurrent(); $article_current_prio = $article_current->getPriority(); @@ -23,6 +25,8 @@ public function __construct($profile = 'auto') $category_current_prio = 0; } $mount_id = rex_yrewrite::getCurrentDomain()->getMountId(); + $category_mount_children = []; + if (rex_category::get($mount_id)) { $category_mount_children = rex_category::get($mount_id)->getChildren(true); } @@ -108,7 +112,6 @@ public function __construct($profile = 'auto') $urls[$start_id] = rex_article::get($start_id)->getUrl(); } } - foreach ($article_prefetch_config as $article_id) { $article = rex_article::get($article_id); if ($article) {