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

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

View File

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

View File

@ -1,6 +1,4 @@
<?php
use Sabre\VObject\Recur\EventIterator\HandleRDateExpandTest;
/* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
* Copyright (C) 2005-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>