Skip to content

Commit fb09e27

Browse files
authored
Merge pull request #4846 from StefanPrintezis/patch-1
Deprecation notice on passing null to str_replace
2 parents 1d89961 + e2fb3c1 commit fb09e27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/Http/Controllers/CrudController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ protected function setupDefaults()
9696
protected function setupConfigurationForCurrentOperation()
9797
{
9898
$operationName = $this->crud->getCurrentOperation();
99-
99+
if (!$operationName) {
100+
return;
101+
}
102+
100103
$setupClassName = 'setup'.Str::studly($operationName).'Operation';
101104

102105
/*

0 commit comments

Comments
 (0)