Use of __construct

This commit is contained in:
Dany De Bontridder 2013-12-21 00:08:02 +00:00
parent ca784a6019
commit c85e15b128

View file

@ -46,7 +46,7 @@ class Supplier extends Fiche
/*! \brief Constructor
/* only a db connection is needed */
function Supplier($p_cn,$p_id=0)
function __construct($p_cn,$p_id=0)
{
$this->fiche_def_ref=FICHE_TYPE_FOURNISSEUR;
parent::__construct($p_cn,$p_id) ;