Skip to content

Commit 9abdd5a

Browse files
authored
[5.4] fix update notification scheduled task (joomla#46315)
1 parent 30b5300 commit 9abdd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/task/updatenotification/src/Extension/UpdateNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)