diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 75f9b0192da..5c9c13e7efa 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -470,7 +470,7 @@ class Societe extends CommonObject global $conf; // Init data for telephonie module - if ($this->telephonie->enabled && $user && $user->id) + if ($conf->telephonie->enabled && $user && $user->id) { /* Lecture des permissions */ $sql = "SELECT p.pread, p.pwrite, p.pperms";