From db640e5bdf690e3c0de20efab0c5776d1d8f4bce Mon Sep 17 00:00:00 2001 From: Ron Barack Date: Tue, 1 Oct 2019 00:45:16 +0200 Subject: [PATCH] Fix for email-contact --- bmlt-meeting-list.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bmlt-meeting-list.php b/bmlt-meeting-list.php index b0159d3..9d4c9fc 100644 --- a/bmlt-meeting-list.php +++ b/bmlt-meeting-list.php @@ -1608,9 +1608,10 @@ function write_detailed_formats($formats, $page) { } private function parse_field($text) { if ($text!='') { - $exploded = explode("#@-@#", $text); - if (count($exploded) > 1) { - $text = $exploded[1]; + $exploded = explode("#@-@#", $text); + $knt = count($exploded); + if ($knt > 1) { + $text = $exploded[$knt-1]; } } return $text;