File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
plugins/task/updatenotification/src/Extension Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ private function sendNotification(ExecuteTaskEvent $event): int
9797 $ updateParams = ComponentHelper::getParams ('com_joomlaupdate ' );
9898
9999 // Don't send when automated updates are active and working
100- $ registrationState = AutoupdateRegisterState::tryFrom ($ updateParams ->get ('autoupdate_status ' , '' ));
100+ $ registrationState = AutoupdateRegisterState::tryFrom ($ updateParams ->get ('autoupdate_status ' , 0 ));
101101 $ lastUpdateCheck = date_create_from_format ('Y-m-d H:i:s ' , $ updateParams ->get ('update_last_check ' , '' ));
102102
103103 if ($ registrationState === AutoupdateRegisterState::Subscribed && $ lastUpdateCheck !== false && $ lastUpdateCheck ->diff (new \DateTime ())->days < 4 ) {
You can’t perform that action at this time.
0 commit comments