Skip to content

Commit 02c32d9

Browse files
authored
Fix non-string warning in oxidized API (librenms#18095)
1 parent b832edb commit 02c32d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/html/api_functions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ function list_oxidized(Illuminate\Http\Request $request)
17191719
}
17201720

17211721
foreach ($fields as $field) {
1722-
if (isset($field['regex']) && preg_match($field['regex'] . 'i', $value)) {
1722+
if (isset($field['regex']) && preg_match($field['regex'] . 'i', (string) $value)) {
17231723
$output[$maps_column] = $field['value'] ?? $field[$maps_column]; // compatibility with old format
17241724
break;
17251725
} elseif (isset($field['match']) && $field['match'] == $value) {

0 commit comments

Comments
 (0)