reporting: adapt config_read_array() in rrd_import()

Note to self: can find more of these using

    % git grep 'foreach..$config\['
This commit is contained in:
Franco Fichtner 2026-02-18 11:33:03 +01:00
parent d97bebb0cc
commit 18c3f1187f

View file

@ -49,9 +49,7 @@ function rrd_export()
function rrd_import()
{
global $config;
foreach ($config['rrddata']['rrddatafile'] as $rrd) {
foreach (config_read_array('rrddata', 'rrddatafile', false) as $rrd) {
$rrd_file = "/var/db/rrd/" . basename($rrd['filename']);
if (!empty($rrd['xmldata'])) {
$xml_file = preg_replace('/\.rrd$/', ".xml", $rrd_file);