Skip to content

Commit 7674525

Browse files
committed
ACP2E-77: app:config:import stop when retrieve a warning or notice on php code
1 parent 86dc050 commit 7674525

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/Cron/Model/Config/Backend/Sitemap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ public function __construct(
7272
public function afterSave()
7373
{
7474
$time = $this->getData('groups/generate/fields/time/value');
75+
if (null === $time) {
76+
$time = explode(',', $this->_config->getValue('sitemap/generate/time'));
77+
}
7578
$frequency = $this->getData('groups/generate/fields/frequency/value');
79+
if (null === $frequency) {
80+
$frequency = $this->getValue();
81+
}
7682

7783
$cronExprArray = [
7884
(int)$time[1], //Minute

0 commit comments

Comments
 (0)