Skip to content

Commit 97135ef

Browse files
authored
Fix for Notice: Undefined offset: 1
#5
1 parent 93dc301 commit 97135ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Cron/Sections.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public function execute()
6767
foreach ($connection->fetchAll($select) as $config) {
6868
$matches = false;
6969
preg_match("/(.*)\/" . str_replace('/', '\/', $path) . "/", $config['path'], $matches);
70+
if (empty($matches[1])) {
71+
continue;
72+
}
7073
$section = $this->sectionFactory->create([
7174
'name' => $matches[1]
7275
]);

0 commit comments

Comments
 (0)