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 @@ -77,8 +77,8 @@ public function afterSave()
7777 $ frequency = $ this ->getData ('groups/productalert_cron/fields/frequency/value ' );
7878
7979 $ cronExprArray = [
80- is_array ( $ time ) ? ( int )$ time [1 ] : 0 , //Minute
81- is_array ( $ time ) ? ( int )$ time [0 ] : 0 , //Hour
80+ ( int )( $ time [1 ] ?? 0 ) , //Minute
81+ ( int )( $ time [0 ] ?? 0 ) , //Hour
8282 $ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_MONTHLY ? '1 ' : '* ' , //Day of the Month
8383 '* ' , //Month of the Year
8484 $ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_WEEKLY ? '1 ' : '* ' , //Day of the Week
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ public function afterSave()
7777 $ frequency = $ this ->getData ('groups/generate/fields/frequency/value ' );
7878
7979 $ cronExprArray = [
80- is_array ( $ time ) ? ( int )$ time [1 ] : 0 , //Minute
81- is_array ( $ time ) ? ( int )$ time [0 ] : 0 , //Hour
80+ ( int )$ time [1 ] ?? 0 , //Minute
81+ ( int )$ time [0 ] ?? 0 , //Hour
8282 $ frequency == \Magento \Cron \Model \Config \Source \Frequency::CRON_MONTHLY ? '1 ' : '* ' , //Day of the Month
8383 '* ' , //Month of the Year
8484 $ 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