check if $record_type is set

This commit is contained in:
Uwe Steinmann 2023-01-09 16:15:36 +01:00
parent 627baa5cc8
commit 8c87816070

View File

@ -834,8 +834,8 @@ function typeahead() { /* {{{ */
}
if(!isset($facets['record_type'])) {
$options = array();
$options[] = array('document', getMLText('document'), in_array('document', $record_type));
$options[] = array('folder', getMLText('folder'), in_array('folder', $record_type));
$options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type));
$options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type));
$this->formField(
getMLText("record_type"),
array(