Fix warning
This commit is contained in:
parent
ede38dec30
commit
37e9d13982
@ -510,7 +510,7 @@ function createThirdParty($authentication, $thirdparty)
|
||||
$db->commit();
|
||||
|
||||
// Patch to add capability to associate (one) sale representative
|
||||
if ($thirdparty['commid'] && $thirdparty['commid'] > 0)
|
||||
if (!empty($thirdparty['commid']) && $thirdparty['commid'] > 0)
|
||||
$newobject->add_commercial($fuser, $thirdparty["commid"]);
|
||||
|
||||
$objectresp = array('result'=>array('result_code'=>'OK', 'result_label'=>''), 'id'=>$newobject->id, 'ref'=>$newobject->ref);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user