FIX: also check if there is a method $object->fetch_thirdparty() before calling it
This commit is contained in:
parent
509819c119
commit
56db7d6c64
@ -180,7 +180,7 @@ if ($action == 'presend')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!empty($object->socid) && empty($object->thirdparty)) {
|
if (!empty($object->socid) && empty($object->thirdparty) && method_exists($object, 'fetch_thirdparty')) {
|
||||||
$object->fetch_thirdparty();
|
$object->fetch_thirdparty();
|
||||||
}
|
}
|
||||||
if (is_object($object->thirdparty))
|
if (is_object($object->thirdparty))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user