FIX: Warning on external modules Pages: Unknown array key. (#34418)
* FIX: Warning on external modules Pages: Unknown array key. * FIX: Warning on external modules Pages: Unknown array key. WIP * FIX: Warning on external modules Pages: Unknown array key. WIP * Update externalModules.class.php --------- Co-authored-by: Theobald <f.moreau@theobald-groupe.com> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
a68bd9c1a3
commit
cdd401f58e
1 changed files with 2 additions and 1 deletions
|
|
@ -876,7 +876,8 @@ class ExternalModules
|
|||
continue;
|
||||
}
|
||||
$adaptedPackage = [
|
||||
'ref' => str_replace(' ', '', $package['modulename'].'-'.$package['current_version'].'@'.$package['author']),
|
||||
'ref' => str_replace(' ', '', $package['modulename'] . '-' . $package['current_version'] . '@' .
|
||||
(array_key_exists('author', $package) ? $package['author'] : 'unkownauthor')),
|
||||
'label' => !empty($package['label'][substr($this->lang, 0, 2)])
|
||||
? $package['label'][substr($this->lang, 0, 2)]
|
||||
: (!empty($package['label']['en']) ? $package['label']['en'] : $package['modulename']),
|
||||
|
|
|
|||
Loading…
Reference in a new issue