diff --git a/htdocs/admin/triggers.php b/htdocs/admin/triggers.php index 2b3161a36e2..f7f5fe0ab51 100644 --- a/htdocs/admin/triggers.php +++ b/htdocs/admin/triggers.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2005-2013 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php index e4815ded047..deaa2eaac59 100644 --- a/htdocs/core/class/interfaces.class.php +++ b/htdocs/core/class/interfaces.class.php @@ -265,6 +265,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.'."
\n"; + continue; + } + $objMod = new $modName($this->db); // Define disabledbyname and disabledbymodule