Skip to content
Snippets Groups Projects
Commit 7033616b authored by llaffont's avatar llaffont
Browse files

Suppression d'un warning sur les array_merge

parent a735adde
Branches
Tags
No related merge requests found
......@@ -150,7 +150,9 @@ class Class_Systeme_ModulesMenu extends Class_Systeme_ModulesAbstract {
public function getUrl($type, $preferences) {
$module = $this->getFonction($type);
$preferences = array_merge($module->getDefaultValues(),$preferences);
$preferences = is_array($preferences)
? array_merge($module->getDefaultValues(),$preferences)
: $module->getDefaultValues();
return ['url' => $module->getUrl($preferences),
'target' => $module->shouldOpenInNewWindow($preferences) ? '_blank' : ''];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment