Not need to test if class exists with require_once
This commit is contained in:
parent
87fc27c7e6
commit
6a4468d94e
@ -576,8 +576,7 @@ abstract class CommonObject
|
|||||||
|
|
||||||
if (empty($this->socid)) return 0;
|
if (empty($this->socid)) return 0;
|
||||||
|
|
||||||
if (!class_exists('Societe'))
|
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
|
||||||
|
|
||||||
$thirdparty = new Societe($this->db);
|
$thirdparty = new Societe($this->db);
|
||||||
$result=$thirdparty->fetch($this->socid);
|
$result=$thirdparty->fetch($this->socid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user