diff --git a/library/Scores/Ciblage.php b/library/Scores/Ciblage.php index 4aed2f0e..677daad2 100644 --- a/library/Scores/Ciblage.php +++ b/library/Scores/Ciblage.php @@ -70,6 +70,8 @@ Class Ciblage { $this->sphinx->SetFilter('presentrcs', array(0)); $resSphinx = $this->sphinx->Query($this->alpha, $this->index); + if(empty($resSphinx['total_found'])) + return (0); return ($resSphinx['total_found']); } protected function getSiret($structure)