diff --git a/modules/Vtiger/CRMEntity.php b/modules/Vtiger/CRMEntity.php index 78fe1b62e32648eb4aa4da2eb4407a39496a7bb0..f6e02223f8f2b5b3c7b803489221bda1e2e5f3ce 100644 --- a/modules/Vtiger/CRMEntity.php +++ b/modules/Vtiger/CRMEntity.php @@ -27,7 +27,7 @@ class Vtiger_CRMEntity extends CRMEntity { function __construct() { global $log; $this->column_fields = getColumnFields(get_class($this)); - $this->db = new PearDatabase(); + $this->db = PearDatabase::getInstance(); $this->log = $log; }