Fix install hangs

This commit is contained in:
Laurent Destailleur
2020-09-17 13:03:34 +02:00
parent 4b0dbbc5fb
commit 8029b80f08
3 changed files with 4 additions and 4 deletions

View File

@@ -134,7 +134,8 @@ class modService extends DolibarrModules
$r++;
*/
$usenpr = $mysoc->useNPR();
$usenpr = 0;
if (is_object($mysoc)) $usenpr = $mysoc->useNPR();
// Exports
//--------