2
0
forked from Wavyzz/dolibarr

Add a protection for duplicate modules

This commit is contained in:
Laurent Destailleur
2012-03-15 16:01:56 +01:00
parent 5edcc19820
commit 62801532a7

View File

@@ -124,7 +124,7 @@ foreach ($modulesdir as $dir)
if ($modName)
{
if (in_array($modName,$modNameLoaded))
if (! empty($modNameLoaded[$modName]))
{
$mesg="Error: Module ".$modName." was found twice: Into ".$modNameLoaded[$modName]." and ".$dir.". You probably have an old file on your disk.<br>";
dol_syslog($mesg, LOG_ERR);