mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
fix various warning
This commit is contained in:
@@ -1101,7 +1101,7 @@ function activateModule($value, $withdeps = 1)
|
|||||||
|
|
||||||
if (!count($ret['errors'])) {
|
if (!count($ret['errors'])) {
|
||||||
$ret['nbmodules']++;
|
$ret['nbmodules']++;
|
||||||
$ret['nbperms'] += count($objMod->rights);
|
$ret['nbperms'] += (is_array($objMod->rights)?count($objMod->rights):0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user