Merge pull request #23137 from bb2a/FIX---PHP-Warning-and-use-isModEnabled

FIX - PHP Warning and use isModEnabled
This commit is contained in:
Laurent Destailleur
2022-12-07 17:14:29 +01:00
committed by GitHub

View File

@@ -2528,7 +2528,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '</td>';
}
if ($object->isService() && $conf->workstation->enabled) {
if ($object->isService() && isModEnabled('workstation')) {
$workstation = new Workstation($db);
$res = $workstation->fetch($object->fk_default_workstation);