diff --git a/htdocs/commande/class/orderline.class.php b/htdocs/commande/class/orderline.class.php index 28c5e9851f5..599fa44e03e 100644 --- a/htdocs/commande/class/orderline.class.php +++ b/htdocs/commande/class/orderline.class.php @@ -37,6 +37,7 @@ */ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobjectline.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/commonorder.class.php'; // Because the CommonOrderLine is still in commonorder.class.php file require_once DOL_DOCUMENT_ROOT.'/margin/lib/margins.lib.php'; diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 51d9f061f30..71794e6bc5d 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1530,7 +1530,6 @@ function dol_include_once($relpath, $classname = '') dol_syslog('functions::dol_include_once Tried to load unexisting file: '.$relpath, LOG_WARNING); return false; } - if (!empty($classname) && !class_exists($classname)) { return include $fullpath; } else {