// throw error if problem in database integrity

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12643 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2012-01-24 15:09:56 +00:00
parent 643537b640
commit c4ca3d12df

View File

@@ -1558,6 +1558,10 @@ abstract class ModuleCore
$cache_permissions[$employee->id_profile][$row['id_module']]['configure'] = $row['configure'];
}
}
if (!isset($cache_permissions[$employee->id_profile][$id_module]))
throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.');
return (bool)$cache_permissions[$employee->id_profile][$id_module][$variable];
}