Skip to content

Commit 630001d

Browse files
AC-988::Fixing app:config:import issue after config dump
1 parent 1807f70 commit 630001d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Cron/Model/Config/Backend/Product/Alert.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function afterSave()
7575
$frequency = $this->getData('groups/productalert_cron/fields/frequency/value');
7676

7777
$cronExprArray = [
78-
(int)$time[1], //Minute
79-
(int)$time[0], //Hour
78+
is_array($time) ? (int)$time[1] : 0, //Minute
79+
is_array($time) ? (int)$time[0] : 0, //Hour
8080
$frequency == \Magento\Cron\Model\Config\Source\Frequency::CRON_MONTHLY ? '1' : '*', //Day of the Month
8181
'*', //Month of the Year
8282
$frequency == \Magento\Cron\Model\Config\Source\Frequency::CRON_WEEKLY ? '1' : '*', //Day of the Week

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function afterSave()
7575
$frequency = $this->getData('groups/generate/fields/frequency/value');
7676

7777
$cronExprArray = [
78-
(int)$time[1], //Minute
79-
(int)$time[0], //Hour
78+
is_array($time) ? (int)$time[1] : 0, //Minute
79+
is_array($time) ? (int)$time[0] : 0, //Hour
8080
$frequency == \Magento\Cron\Model\Config\Source\Frequency::CRON_MONTHLY ? '1' : '*', //Day of the Month
8181
'*', //Month of the Year
8282
$frequency == \Magento\Cron\Model\Config\Source\Frequency::CRON_WEEKLY ? '1' : '*', //# Day of the Week

0 commit comments

Comments
 (0)