mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
Merge pull request #23137 from bb2a/FIX---PHP-Warning-and-use-isModEnabled
FIX - PHP Warning and use isModEnabled
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user