File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/Cron/Model/Config/Backend Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ public function afterSave()
75
75
$ frequency = $ this ->getData ('groups/productalert_cron/fields/frequency/value ' );
76
76
77
77
$ 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
80
80
$ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_MONTHLY ? '1 ' : '* ' , //Day of the Month
81
81
'* ' , //Month of the Year
82
82
$ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_WEEKLY ? '1 ' : '* ' , //Day of the Week
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ public function afterSave()
75
75
$ frequency = $ this ->getData ('groups/generate/fields/frequency/value ' );
76
76
77
77
$ 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
80
80
$ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_MONTHLY ? '1 ' : '* ' , //Day of the Month
81
81
'* ' , //Month of the Year
82
82
$ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_WEEKLY ? '1 ' : '* ' , //# Day of the Week
You can’t perform that action at this time.
0 commit comments