Skip to content

Commit

Permalink
Prevent deprecate message (#1476)
Browse files Browse the repository at this point in the history
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
  • Loading branch information
edwinheij authored Mar 26, 2024
1 parent 0392312 commit c0fb1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/row.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@foreach ($columns as $column)
@php
$content = $row->{$column->field} ?? null;
$content = $row->{$column->field} ?? '';
$contentClassField = $column->contentClassField != '' ? $row->{$column->contentClassField} : '';
$content = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $content);
$field = $column->dataField != '' ? $column->dataField : $column->field;
Expand Down

0 comments on commit c0fb1ad

Please sign in to comment.