Browse code

catch a situation when contact handles are messed up

Bernd Wurst authored on01/05/2020 11:50:07
Showing1 changed files
... ...
@@ -40,6 +40,9 @@ foreach ($liste as $id) {
40 40
     }
41 41
     $already_displayed[] = $id;
42 42
     $cssclass = 'contact-mainlist ';
43
+    if (! isset($contacts[$id])) {
44
+        system_failure('Fehlerhafte Kunden-Zuordnung bei den Kontakten');
45
+    }
43 46
     $contact = $contacts[$id];
44 47
     $usage = array();
45 48
     if ($id == $kundenkontakte['kunde']) {