diff --git a/include/tw/cis_menu_meincis.inc.php b/include/tw/cis_menu_meincis.inc.php index 636ca1b9f..8ecc6f7e1 100644 --- a/include/tw/cis_menu_meincis.inc.php +++ b/include/tw/cis_menu_meincis.inc.php @@ -306,7 +306,7 @@ if($untergebene!='') { - $qry = "SELECT * FROM public.tbl_person JOIN public.tbl_benutzer USING(person_id) WHERE uid in($untergebene) ORDER BY nachname, vorname"; + $qry = "SELECT * FROM public.tbl_person JOIN public.tbl_benutzer USING(person_id) WHERE uid in($untergebene) and tbl_benutzer.aktiv ORDER BY nachname, vorname"; if($result = $db->db_query($qry)) {