#11739 Fixed deprecated functions 3

This commit is contained in:
Daniel Maya 2023-08-01 11:19:04 +02:00
parent 9f36729d30
commit 0d321f5311
6 changed files with 15 additions and 7 deletions

View File

@ -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;

View File

@ -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.

View File

@ -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');
}

View File

@ -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/');

View File

@ -23,6 +23,8 @@ class Defaults implements ChartOwnedInterface, ArraySerializableInterface, JsonS
*/
private $font;
protected $watermark;
/**
* Return Font.

View File

@ -14,6 +14,12 @@ class Plugins implements ArraySerializableInterface, JsonSerializable
{
use ArraySerializable;
protected $legend;
protected $title;
protected $datalabels;
/**
* Return Legend.