Skip to content

Commit d4d931e

Browse files
authored
Update Sections.php
1 parent 589cece commit d4d931e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Cron/Sections.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,12 @@ public function execute()
7979
foreach ($data as $module => $item) {
8080
$section = $sections[$module];
8181
if (!$section->validate($data)) {
82-
$path = $section->getName() . '/' . $path;
8382
$connection->update(
8483
$table,
8584
[
86-
'scope' => 'default',
87-
'scope_id' => 0,
88-
'path' => $path,
8985
'value' => 0
9086
],
91-
['path = ? ' => $path]
87+
['path = ? ' => $section->getName() . '/' . $path]
9288
);
9389
}
9490
}

0 commit comments

Comments
 (0)