fix media removal

This commit is contained in:
Yisroel Baum 2026-06-02 17:00:33 +03:00
parent 4b432d9b99
commit 1934a6b94f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 71 additions and 12 deletions

View file

@ -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;
}