Skip to content

Commit 89502fd

Browse files
authored
[5.4] Fix handling of responses from autoupdate server (#45673)
Fix response handling for undefined array --------- Co-authored-by: @Ruud68
1 parent bdd1e18 commit 89502fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

administrator/components/com_joomlaupdate/src/Model/UpdateModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ public function changeAutoUpdateRegistration(AutoupdateRegisterState $targetStat
614614
Factory::getApplication()->enqueueMessage(
615615
Text::sprintf(
616616
'COM_JOOMLAUPDATE_AUTOUPDATE_REGISTER_ERROR',
617-
$result['message'] ?: '',
618-
$result['status'] ?: ''
617+
$result['message'] ?? '',
618+
$result['status'] ?? ''
619619
),
620620
'error'
621621
);

0 commit comments

Comments
 (0)