mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Use isModEnabled
This commit is contained in:
@@ -177,7 +177,7 @@ function project_prepare_head(Project $project, $moreparam = '')
|
||||
if (isModEnabled('expensereport')) {
|
||||
$nbElements += $project->getElementCount('expensereport', 'expensereport');
|
||||
}
|
||||
if (!empty($conf->don->enabled)) {
|
||||
if (isModEnabled('don')) {
|
||||
$nbElements += $project->getElementCount('donation', 'don');
|
||||
}
|
||||
if (!empty($conf->loan->enabled)) {
|
||||
|
||||
Reference in New Issue
Block a user