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
path: root/ui
diff options
context:
space:
mode:
authorAndrejs Verza <andrejs.verza@zabbix.com>2022-11-04 16:17:32 +0300
committerAndrejs Verza <andrejs.verza@zabbix.com>2022-11-04 16:17:32 +0300
commitd40d64aee3129b29b4ffdda03a30a2c4e22cc3f1 (patch)
treeeecbee73af0609a83669b94eb1d04db0504791be /ui
parenta776f907ee2432c249d31aee0f692d6a4809de35 (diff)
..F....... [ZBXNEXT-7469] fixed page loading errors #3
Diffstat (limited to 'ui')
-rw-r--r--ui/include/classes/core/ZBase.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/include/classes/core/ZBase.php b/ui/include/classes/core/ZBase.php
index ede6d5d6d04..0b57fbb5c83 100644
--- a/ui/include/classes/core/ZBase.php
+++ b/ui/include/classes/core/ZBase.php
@@ -800,7 +800,7 @@ class ZBase {
$layout = 'layout.json';
break;
- default:
+ case null:
if ((array_key_exists('CONTENT_TYPE', $_SERVER) && $_SERVER['CONTENT_TYPE'] === 'application/json')
|| (array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER)
&& strcasecmp($_SERVER['HTTP_X_REQUESTED_WITH'], 'XMLHttpRequest') == 0)) {
@@ -809,7 +809,12 @@ class ZBase {
else {
$layout = 'general.warning';
}
+ break;
+
+ default:
+ $layout = 'general.warning';
}
+
switch ($layout) {
case 'layout.json':
echo (new CView('layout.json', [