diff --git a/apps/maarch_entreprise/class/class_lists_Abstract.php b/apps/maarch_entreprise/class/class_lists_Abstract.php index bd6e10cb02670020df02ada0345a0e62b5d8cf88..31fbad2f1931d85584ecc6d4b1ddbe73450c0358 100644 --- a/apps/maarch_entreprise/class/class_lists_Abstract.php +++ b/apps/maarch_entreprise/class/class_lists_Abstract.php @@ -212,7 +212,7 @@ abstract class lists_Abstract extends Database "SELECT distinct(r.destination) as entity_id, count(distinct r.res_id)" . " as total, e.entity_label , e.short_label FROM " . $view. " r left join " . ENT_ENTITIES - . " e on e.entity_id = r.destination " .$where . " and entity_id <> ''" + . " e on e.entity_id = r.destination " .$where . " and (e.entity_id <> '' or e.entity_id IS NOT NULL)" . " group by e.entity_label, e.short_label, r.destination order by e.entity_label" ); while ($res = $stmt->fetchObject()) {