mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
FIX a Fatal error when a trigger files is not correctly named.
This commit is contained in:
@@ -185,6 +185,10 @@ class Interfaces
|
||||
if (empty($modName)) {
|
||||
continue;
|
||||
}
|
||||
if (!class_exists($modName)) {
|
||||
dol_syslog(get_class($this)."::run_triggers action=".$action." A trigger file was found with a name interfaces_*_*_".preg_replace('/^interface/', '', strtolower($modName)).".class.php, but the class ".$modName." seems to not exists even after the include of this interface file. Surely a bug in the trigger file or in its name.", LOG_ERR);
|
||||
continue;
|
||||
}
|
||||
|
||||
$objMod = new $modName($this->db);
|
||||
'@phan-var-force DolibarrTriggers $objMod';
|
||||
|
||||
Reference in New Issue
Block a user