Skip to content

Commit 41334f0

Browse files
committed
Fix more $rrd_options as string issues
1 parent 4b86570 commit 41334f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibreNMS/Util/Graph.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static function get($vars): GraphImage
143143
$nodetails = ! $graph_params->visible('details');
144144
$noagg = ! $graph_params->visible('aggregate');
145145

146-
$rrd_options = '';
146+
$rrd_options = [];
147147
$rrd_filename = null;
148148

149149
$auth = Auth::guest(); // if user not logged in, assume we authenticated via signed url, allow_unauth_graphs or allow_unauth_graphs_cidr
@@ -168,7 +168,7 @@ public static function get($vars): GraphImage
168168
throw new RrdGraphException('Graph Definition Error', 'Def Error', $width, $height);
169169
}
170170

171-
$rrd_options = $graph_params . ' ' . $rrd_options;
171+
$rrd_options = [...$graph_params->toRrdOptions(), ...$rrd_options];
172172

173173
// Generating the graph!
174174
try {

0 commit comments

Comments
 (0)