Skip to content

Commit

Permalink
Update stanford_capx.forms.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
sherakama authored and pookmish committed May 24, 2019
1 parent 1e5f97d commit 37f3e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stanford_capx.forms.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2099,8 +2099,8 @@ function stanford_capx_schema_format_validation($schema = NULL) {
$formatted_schema[$name] = stanford_capx_schema_format_validation($property);
}
}
elseif ($schema['type'] == 'array') {
$formatted_schema = array(stanford_capx_schema_format_validation($schema['items']));
elseif ($schema['type'] == 'array' && isset($schema['items'])) {
$formatted_schema = [stanford_capx_schema_format_validation($schema['items'])];
}
else {
// Leaf element set to a string explaining the data type. E.g. 'integer'.
Expand Down

0 comments on commit 37f3e83

Please sign in to comment.