From 37f3e8364bb529ed6bcf1b0dbf5fc0b4ed1e0096 Mon Sep 17 00:00:00 2001 From: Sherakama Date: Fri, 24 May 2019 15:45:28 -0700 Subject: [PATCH] Update stanford_capx.forms.inc --- stanford_capx.forms.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stanford_capx.forms.inc b/stanford_capx.forms.inc index ca544acd..5dcbc813 100644 --- a/stanford_capx.forms.inc +++ b/stanford_capx.forms.inc @@ -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'.