Code improved : test and fix load functions

This commit is contained in:
sparkyx 2021-12-06 18:53:16 +01:00
parent 0068caaf89
commit fc3c1057e3
16 changed files with 453 additions and 80 deletions

View file

@ -273,8 +273,10 @@ class Acc_Bilan
if ( Database::num_row($res)==0)
throw new Exception (_('Aucun enregistrement trouve'));
$array=Database::fetch_array($res,0);
foreach ($array as $name=>$value)
$this->$name=$value;
$this->b_name=$array['b_name'];
$this->b_file_template=$array['b_file_template'];
$this->b_file_form=$array['b_file_form'];
$this->b_type=$array['b_type'];
}
catch(Exception $Ex)