Fix #154 - [Legacy] MySQL Error 1054: missing config.id and config.deleted columns

This commit is contained in:
pgorod 2023-03-30 11:33:35 +01:00 committed by Clemente Raposo
parent 1f949f1ac2
commit 91b2a8a188

View file

@ -130,7 +130,9 @@ class FavoritesManagerPort
$db = DBManagerFactory::getInstance();
$userId = $current_user->id ?? null;
if (empty($db) || empty($userId) || empty($module)) {
$excludedModules = ['Home', 'Administration', 'ModuleBuilder'];
if (empty($db) || empty($userId) || empty($module) || in_array($module, $excludedModules)) {
return [];
}