mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-03-14 21:42:52 +00:00
Fix #10450 - Add check for empty value before searching array
Add empty check to avoid 500 error when deploying module from module loader
This commit is contained in:
parent
7fedf92758
commit
a36dbfc034
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class ModuleInstaller
|
|||
}
|
||||
$user->retrieve($userId);
|
||||
$prefs = $user->getPreference('globalSearch', 'search');
|
||||
if (array_key_exists($beanDefs['module'], $prefs) == false) {
|
||||
if (empty($prefs) || array_key_exists($beanDefs['module'], $prefs) == false) {
|
||||
continue;
|
||||
}
|
||||
unset($prefs[$beanDefs['module']]);
|
||||
|
|
Loading…
Reference in a new issue