diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index cbe7858e9e..82540a7a64 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -931,7 +931,7 @@ foreach ($fields as $field) { // Filling the data. $combo = []; $combo = $field['combo_values']; - $combo = explode(',', $combo); + $combo = explode(',', (empty($combo) === true) ? [] : $combo); $combo_values = []; foreach ($combo as $value) { $combo_values[$value] = $value; diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 13085fa24c..1892b0cd31 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1003,6 +1003,10 @@ function grafico_modulo_sparse($params) ]; } + if ($data_module_graph === false) { + $data_module_graph = []; + } + $data_module_graph['series_suffix'] = $series_suffix; // Check available data. diff --git a/pandora_console/include/lib/ClusterViewer/ClusterManager.php b/pandora_console/include/lib/ClusterViewer/ClusterManager.php index f841581491..3afff1adb3 100644 --- a/pandora_console/include/lib/ClusterViewer/ClusterManager.php +++ b/pandora_console/include/lib/ClusterViewer/ClusterManager.php @@ -353,11 +353,7 @@ class ClusterManager */ public function getCount() { - if (isset($this->count) !== true) { - $this->count = $this->getAll('count'); - } - - return $this->count; + return $this->getAll('count'); } diff --git a/pandora_console/update_manager_client/lib/UpdateManager/Client.php b/pandora_console/update_manager_client/lib/UpdateManager/Client.php index ba1574d8f9..2525fd4f2b 100644 --- a/pandora_console/update_manager_client/lib/UpdateManager/Client.php +++ b/pandora_console/update_manager_client/lib/UpdateManager/Client.php @@ -496,7 +496,7 @@ class Client throw new \Exception('Please provide homedir path to use UMC'); } - if (is_dir($this->remoteConfig) === true + if (empty($this->remoteConfig) === false && is_dir($this->remoteConfig) === true && is_dir($this->remoteConfig.'/updates') === false ) { mkdir($this->remoteConfig.'/updates/'); diff --git a/pandora_console/vendor/artica/phpchartjs/src/Defaults.php b/pandora_console/vendor/artica/phpchartjs/src/Defaults.php index 972b1bfb8c..c3ece0bb1c 100644 --- a/pandora_console/vendor/artica/phpchartjs/src/Defaults.php +++ b/pandora_console/vendor/artica/phpchartjs/src/Defaults.php @@ -23,6 +23,8 @@ class Defaults implements ChartOwnedInterface, ArraySerializableInterface, JsonS */ private $font; + protected $watermark; + /** * Return Font. diff --git a/pandora_console/vendor/artica/phpchartjs/src/Options/Plugins.php b/pandora_console/vendor/artica/phpchartjs/src/Options/Plugins.php index f1dc674a2a..6f638a06ad 100644 --- a/pandora_console/vendor/artica/phpchartjs/src/Options/Plugins.php +++ b/pandora_console/vendor/artica/phpchartjs/src/Options/Plugins.php @@ -14,6 +14,12 @@ class Plugins implements ArraySerializableInterface, JsonSerializable { use ArraySerializable; + protected $legend; + + protected $title; + + protected $datalabels; + /** * Return Legend.