Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Apr 20, 2022
1 parent 014d2c5 commit a1893b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/speed_up.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class speed_up

public function __construct($profile = 'auto')
{
$urls = [];

$article_current = rex_article::getCurrent();
$article_current_prio = $article_current->getPriority();

Expand All @@ -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);
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a1893b4

Please sign in to comment.