diff --git a/include/class/acc_ledger_history_generic.class.php b/include/class/acc_ledger_history_generic.class.php index 5fd4e3c04..98c2203cc 100644 --- a/include/class/acc_ledger_history_generic.class.php +++ b/include/class/acc_ledger_history_generic.class.php @@ -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 '