Skip to content

Commit 11932f4

Browse files
authored
Don't pass null to some string functions for PHP 8.1
1 parent 85e65b0 commit 11932f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/ReportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function show($slug, $id)
122122
}
123123
$response .= '<tr>';
124124
foreach ($row as $column) {
125-
$response .= '<td><div>' . htmlspecialchars($column) . '</div></td>';
125+
$response .= '<td><div>' . htmlspecialchars($column ?: '') . '</div></td>';
126126
}
127127
$response .= '</tr>';
128128
}

0 commit comments

Comments
 (0)