mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed issue when the data is null.
This commit is contained in:
parent
cf9df883c9
commit
0430178fe2
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class StructuralEntityType extends AbstractType
|
|||
//In that case we add the new element to our choice_loader
|
||||
|
||||
$data = $event->getData();
|
||||
if (str_starts_with($data, '$%$')) {
|
||||
if (is_string($data) && str_starts_with($data, '$%$')) {
|
||||
//Extract the real name from the data
|
||||
$data = substr($data, 3);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue