We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5320895 commit 5c506bcCopy full SHA for 5c506bc
lib/Service/Structure/ContentTypeService.php
@@ -86,9 +86,11 @@ private function checkForArticleRedirect(string $path): ?ContentType
86
return null;
87
}
88
$redirections = rex_yrewrite::$paths['redirections'];
89
- foreach ($redirections['default'] as $idx => $redirection) {
90
- if (ltrim($redirection[1]['path'], '/') == $path) {
91
- return new ContentType('article_redirect', rex_clang::getCurrentId(), new ID($idx));
+ if (isset($redirections['default'])) {
+ foreach ($redirections['default'] as $idx => $redirection) {
+ if (ltrim($redirection[1]['path'], '/') == $path) {
92
+ return new ContentType('article_redirect', rex_clang::getCurrentId(), new ID($idx));
93
+ }
94
95
96
0 commit comments