Code improved : test and fix load functions
This commit is contained in:
parent
0068caaf89
commit
fc3c1057e3
16 changed files with 453 additions and 80 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue