Update interface_90_modSociete_ContactRoles.class.php

This commit is contained in:
Laurent Destailleur 2019-10-07 15:27:23 +02:00 committed by GitHub
parent 240785922e
commit 3a15485e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class InterfaceContactRoles extends DolibarrTriggers
$socid=(property_exists($object, 'socid')?$object->socid:$object->fk_soc);
if(!empty($socid) && $socid != '-1') {
if (! empty($socid) && $socid > 0) {
global $db, $langs;
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
$contactdefault = new Contact($this->db);