From e42c04e95552415ba8dbe2a79fce6fee2cfb216f Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 28 Nov 2011 21:05:20 +0000 Subject: [PATCH] return a array with 0 for get_solde_detail --- include/class_fiche.php | 2 +- include/constant.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_fiche.php b/include/class_fiche.php index e3ae4887f..22efd9ce2 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -1423,7 +1423,7 @@ class Fiche */ function get_solde_detail($p_cond="") { - if ( $this->id == 0 ) exit('fiche->id est nul'); + if ( $this->id == 0 ) return array('credit'=>0,'debit'=>0,'solde'=>0); $qcode=$this->strAttribut(ATTR_DEF_QUICKCODE); if ( $p_cond != "") $p_cond=" and ".$p_cond; diff --git a/include/constant.php b/include/constant.php index cd5e8b41c..8bacb0d06 100644 --- a/include/constant.php +++ b/include/constant.php @@ -41,7 +41,7 @@ $g_captcha=false; * */ $version_phpcompta=4444; -define ("DEBUG",false); +define ("DEBUG",true); define ("DBVERSION",98); define ("DBVERSIONREPO",14);