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);