diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml index cced69ff1..38c8ce08f 100644 --- a/app/views/console/database/document.phtml +++ b/app/views/console/database/document.phtml @@ -20,7 +20,7 @@ $collections = []; $key = (isset($rule['key'])) ? $rule['key'] : ''; $label = (isset($rule['label'])) ? $rule['label'] : ''; $type = (isset($rule['type'])) ? $rule['type'] : ''; - $list = (isset($rule['list'])) ? $rule['list'] : []; + $list = (isset($rule['list']) && !empty($list)) ? $rule['list'] : []; ?> getId()) { @@ -51,7 +51,7 @@ $collections = []; $key = (isset($rule['key'])) ? $rule['key'] : ''; $label = (isset($rule['label'])) ? $rule['label'] : ''; $type = (isset($rule['type'])) ? $rule['type'] : ''; - $list = (isset($rule['list'])) ? $rule['list'] : false; + $list = (isset($rule['list'])) ? $rule['list'] : []; $array = (isset($rule['array'])) ? $rule['array'] : false; ?>