From 55bae1d4a4f5da648b3df5095b31231dc835cb4e Mon Sep 17 00:00:00 2001
From: otrok7 <50595291+otrok7@users.noreply.github.com>
Date: Thu, 7 Nov 2024 15:08:42 +0100
Subject: [PATCH] Test no connection
---
admin/partials/_bmlt_server_setup.php | 2 +-
public/class-bread-public.php | 15 ++++++++-------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/admin/partials/_bmlt_server_setup.php b/admin/partials/_bmlt_server_setup.php
index 5a274ef..ef7bf87 100644
--- a/admin/partials/_bmlt_server_setup.php
+++ b/admin/partials/_bmlt_server_setup.php
@@ -39,7 +39,7 @@
ERROR: Problem Connecting to BMLT Server
connection_error; ?>
+ ?>ERROR: Problem Connecting to BMLT Server
diff --git a/public/class-bread-public.php b/public/class-bread-public.php index 6f50a6e..6fbfdd8 100644 --- a/public/class-bread-public.php +++ b/public/class-bread-public.php @@ -165,6 +165,14 @@ public function bmlt_meeting_list($atts = null, $content = null) } elseif ($this->options['used_format_1'] != '') { $result = Bread_Bmlt::get_configured_root_server_request("client_interface/json/?switcher=GetSearchResults$services&sort_keys=$sort_keys&get_used_formats&formats[]=" . $this->options['used_format_1'] . $select_language); } + + if ($result_meetings == null) { + echo ""; + echo '
No Meetings Found
Or
Internet or Server Problem
' . $this->options['root_server'] . '
Please try again or contact your BMLT Administrator
No Meetings Found
Or
Internet or Server Problem
' . $this->options['root_server'] . '
Please try again or contact your BMLT Administrator