Not need to test if class exists with require_once

This commit is contained in:
jfefe 2014-10-06 14:18:28 +02:00
parent 87fc27c7e6
commit 6a4468d94e

View File

@ -576,8 +576,7 @@ abstract class CommonObject
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);
$result=$thirdparty->fetch($this->socid);