Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Verza <andrejs.verza@zabbix.com>2022-03-29 18:05:44 +0300
committerAndrejs Verza <andrejs.verza@zabbix.com>2022-03-29 18:05:44 +0300
commitfa5f8bcee35929fad0970b4ba0c1c6a241189496 (patch)
treeea8dd85679278d3e8b97d043b1b98af1fa9f6850 /ui/app/views/monitoring.widget.web.view.php
parentf0ecec71194f9461e6a5c8c08643c9bebc1be2b2 (diff)
..F....... [ZBXNEXT-1580,ZBXNEXT-7455] fixed error handling in widgets
Diffstat (limited to 'ui/app/views/monitoring.widget.web.view.php')
-rw-r--r--ui/app/views/monitoring.widget.web.view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/views/monitoring.widget.web.view.php b/ui/app/views/monitoring.widget.web.view.php
index 076a0008ced..20ca344377f 100644
--- a/ui/app/views/monitoring.widget.web.view.php
+++ b/ui/app/views/monitoring.widget.web.view.php
@@ -58,8 +58,8 @@ $output = [
'body' => $table->toString()
];
-if (($messages = getMessages()) !== null) {
- $output['messages'] = $messages->toString();
+if ($messages = get_and_clear_messages()) {
+ $output['messages'] = array_column($messages, 'message');
}
if ($data['user']['debug_mode'] == GROUP_DEBUG_MODE_ENABLED) {