Skip to content

Commit 954eb53

Browse files
authored
Fix services undefined index (librenms#18206)
1 parent 4d117b3 commit 954eb53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/services.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function check_service($command)
247247
$response_string = implode("\n", $response_array);
248248

249249
// Split out the response and the performance data.
250-
[$response, $perf] = explode('|', $response_string);
250+
[$response, $perf] = explode('|', $response_string, 2) + ['', ''];
251251

252252
// Split performance metrics into an array
253253
preg_match_all('/\'[^\']*\'\S*|\S+/', $perf, $perf_arr);

0 commit comments

Comments
 (0)