Php7.2 incompatibility

This commit is contained in:
Dany De Bontridder 2019-02-13 18:32:44 +01:00
parent 445dbdf9cb
commit f2be4c35af

View file

@ -538,7 +538,7 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History
$array=array();
$Max=Database::num_row($Res);
if ($Max==0)
return 0;
return array();
$case="";
$tot_deb=0;
$tot_cred=0;
@ -655,8 +655,9 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History
$this->get_row();
echo '<TABLE class="result">';
// detailled printing
//---
// detailled printing
//---
if ( empty ($this->data)) return;
foreach ($this->data[0] as $op)
{
$class="";