0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-14 21:42:52 +00:00

Fix - 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:
j.buchanan 2024-06-16 14:53:15 +01:00 committed by Jack Anderson
parent 7fedf92758
commit a36dbfc034

View file

@ -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']]);