Skip to content

Commit

Permalink
FIX #7619
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 22, 2017
1 parent be0cd60 commit 745c462
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/societe/class/api_contacts.class.php
Expand Up @@ -19,6 +19,7 @@

//require_once DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php';


/**
* API class for contacts
*
Expand Down Expand Up @@ -48,7 +49,8 @@ function __construct()
global $db, $conf;
$this->db = $db;

include_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';

$this->contact = new Contact($this->db);
}
Expand Down
4 changes: 4 additions & 0 deletions htdocs/societe/class/api_thirdparties.class.php
Expand Up @@ -47,6 +47,10 @@ function __construct()
{
global $db, $conf;
$this->db = $db;

require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';

$this->company = new Societe($this->db);

if (! empty($conf->global->SOCIETE_MAIL_REQUIRED)) {
Expand Down

0 comments on commit 745c462

Please sign in to comment.