diff --git a/include/class_contact.php b/include/class_contact.php index 462299ff2..c928ed347 100644 --- a/include/class_contact.php +++ b/include/class_contact.php @@ -60,7 +60,7 @@ class contact extends Fiche $script=$_SERVER['PHP_SELF']; // Creation of the nav bar // Get the max numberRow - $all_contact=$this->CountByDef($this->fiche_def_ref,$p_search,$extra_sql); + $all_contact=$this->count_by_modele($this->fiche_def_ref,$p_search,$extra_sql); // Get offset and page variable $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; diff --git a/include/class_fiche.php b/include/class_fiche.php index 3fe32cb38..f90802c2e 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -244,7 +244,7 @@ class Fiche * * \return array of fiche object */ - function CountByDef($p_frd_id,$p_search="",$p_sql="") + function count_by_modele($p_frd_id,$p_search="",$p_sql="") { $sql="select * from @@ -1519,7 +1519,7 @@ class Fiche if ( $p_amount) $filter_amount=' and f_id in (select f_id from jrnx where '.$filter_year.')'; - $all_tiers=$this->CountByDef($this->fiche_def_ref,$p_search,$p_sql.$filter_amount); + $all_tiers=$this->count_by_modele($this->fiche_def_ref,$p_search,$p_sql.$filter_amount); // Get offset and page variable $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1;