From 0957dd338f23a2aa8994ac61c24f93c89dda3c83 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Tue, 28 Jun 2022 16:56:25 +0200 Subject: [PATCH] fix events pandora_enterprise#9231 --- pandora_console/operation/events/events.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index e70607e4dd..8bb99e18ac 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -390,11 +390,11 @@ if (is_ajax() === true) { // phpcs:disable Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps if ($tmp->meta === true) { if ($tmp->server_name !== null) { - $tmp->data_server = metaconsole_get_servers( + $data_server = metaconsole_get_servers( $tmp->server_id ); $tmp->server_url_hash = metaconsole_get_servers_url_hash( - $tmp->data_server + $data_server ); } } @@ -892,11 +892,11 @@ if (is_ajax() === true) { $server_url = ''; $hashdata = ''; if ($tmp->meta === true) { - if (isset($tmp->data_server) === true - && $tmp->data_server !== false + if (isset($data_server) === true + && $data_server !== false && isset($tmp->server_url_hash) === true ) { - $server_url = $tmp->data_server['server_url']; + $server_url = $data_server['server_url']; $hashdata = $tmp->server_url_hash; } }