Skip to content

Commit

Permalink
Merge pull request #133 from ConductionNL/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
bbrands02 authored Jan 16, 2025
2 parents e26cc9e + 5ffd38d commit fe5c900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function jsonSerialize(): array
if (isset($this->properties) === true) {
foreach ($this->properties as $title => $property) {
$title = $property['title'] ?? $title;
if ($property['required'] === true && in_array($title, $required) === false) {
if (isset($property['required']) === true && $property['required'] === true && in_array($title, $required) === false) {
$required[] = $title;
}
unset($property['title'], $property['required']);
Expand Down

0 comments on commit fe5c900

Please sign in to comment.