fix media removal
This commit is contained in:
parent
4b432d9b99
commit
1934a6b94f
7 changed files with 71 additions and 12 deletions
|
|
@ -114,7 +114,15 @@ class ElementController
|
|||
|
||||
private function stringInput(Request $request, string $key): ?string
|
||||
{
|
||||
if (! $request->exists($key)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$value = $request->input($key);
|
||||
if ($value === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (! is_string($value)) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue