diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php index 21f39d3a4..647b19b95 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -2004,7 +2004,7 @@ class Fiche [$this->id]); if ( $count > 0 ) return TRUE; - $count=$this->cn->get_value("select count(*) + $count=$this->cn->get_value(" select count(*) from attr_def join fiche_detail using (ad_id)