Skip to content

Commit d2d5164

Browse files
authored
[6.0] Fix extensions check for updates bug (joomla#46075)
* Fix Check for Updates potential bug * Comment wording improved
1 parent d7f2133 commit d2d5164

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/src/Updater/Adapter/ExtensionAdapter.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ public function findUpdate($options)
275275
return false;
276276
}
277277

278+
/**
279+
* Unset the latest update which might have been found for a previous update site, avoid
280+
* strange issue reported at https://github.com/joomla/joomla-cms/issues/46066
281+
*/
282+
unset($this->latest);
283+
278284
if (\array_key_exists('minimum_stability', $options)) {
279285
$this->minimum_stability = $options['minimum_stability'];
280286
}

0 commit comments

Comments
 (0)