diff --git a/cis/private/tools/ampelleiteruebersicht.php b/cis/private/tools/ampelleiteruebersicht.php index 1b40ef5d1..7a035a2f4 100755 --- a/cis/private/tools/ampelleiteruebersicht.php +++ b/cis/private/tools/ampelleiteruebersicht.php @@ -183,7 +183,7 @@ foreach($ampel->result as $row) $status= ''; break; default: - $status= '-'; + $status= ''; break; } echo $status; diff --git a/cis/private/tools/ampelverwaltung.php b/cis/private/tools/ampelverwaltung.php index 7a322e44e..ba6d6e59a 100755 --- a/cis/private/tools/ampelverwaltung.php +++ b/cis/private/tools/ampelverwaltung.php @@ -133,7 +133,7 @@ foreach($ampel->result as $row) $status= ''; break; default: - $status= '-'; + $status= ''; break; } echo $status; diff --git a/include/ampel.class.php b/include/ampel.class.php index 8cd3afaf5..13b00ce5e 100755 --- a/include/ampel.class.php +++ b/include/ampel.class.php @@ -451,12 +451,12 @@ class ampel extends basis_db { // Alle Mitarbeiter dazu holen $qry = "SELECT - * + distinct on (tbl_ampel_benutzer_bestaetigt.ampel_benutzer_bestaetigt_id, a.uid) * FROM (".$row->benutzer_select.") a JOIN public.tbl_benutzerfunktion USING(uid) JOIN campus.vw_benutzer USING(uid) - LEFT JOIN public.tbl_ampel_benutzer_bestaetigt USING(uid) + LEFT JOIN public.tbl_ampel_benutzer_bestaetigt on(public.tbl_ampel_benutzer_bestaetigt.uid=a.uid AND ampel_id='".$row->ampel_id."') WHERE (tbl_ampel_benutzer_bestaetigt.ampel_id is null OR tbl_ampel_benutzer_bestaetigt.ampel_id='".$row->ampel_id."') AND