[-] MO : modules exceptions stability improved

This commit is contained in:
dMetzger
2011-05-02 12:36:27 +00:00
parent 5474660f47
commit 27cbda53ff
2 changed files with 8 additions and 3 deletions

View File

@@ -638,8 +638,12 @@ abstract class ModuleCore
$exceptions = $moduleInstance->getExceptions((int)$array['id_hook'], (int)$array['id_module']);
foreach ($exceptions AS $exception)
{
if (empty($row['value']))
continue;
if (strstr(basename($_SERVER['PHP_SELF']).'?'.$_SERVER['QUERY_STRING'], $exception['file_name']))
continue 2;
}
if (is_callable(array($moduleInstance, 'hook'.$hook_name)))
{