Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion libraries/src/Updater/Adapter/ExtensionAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,14 @@ public function findUpdate($options)

if (isset($this->latest)) {
if (isset($this->latest->client) && \strlen($this->latest->client)) {
$this->latest->client_id = ApplicationHelper::getClientInfo($this->latest->client, true)->id;
/**
* The client_id in the update XML manifest can be either an integer (backwards
* compatible with Joomla 1.6–3.10) or a string. Backwards compatibility with the
* integer key is provided as update servers with the legacy, numeric IDs cause PHP notices
* during update retrieval. The proper string key is one of 'site' or 'administrator'.
*/
$this->latest->client_id = is_numeric($this->latest->client) ? $this->latest->client
: ApplicationHelper::getClientInfo($this->latest->client, true)->id;

unset($this->latest->client);
}
Expand Down