mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Better detection of corrupted module files.
This commit is contained in:
@@ -259,6 +259,12 @@ class Interfaces
|
||||
$modName = $modules[$key];
|
||||
if (empty($modName)) continue;
|
||||
|
||||
if (! class_exists($modName))
|
||||
{
|
||||
print 'Error: A trigger file was found but its class "'.$modName.'" was not found.'."<br>\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
$objMod = new $modName($this->db);
|
||||
|
||||
// Define disabledbyname and disabledbymodule
|
||||
|
||||
Reference in New Issue
Block a user