Index: core/kernel/db/db_tag_processor.php =================================================================== --- core/kernel/db/db_tag_processor.php +++ core/kernel/db/db_tag_processor.php @@ -1155,8 +1155,10 @@ $field = $params['field']; $value = array_key_exists('value', $params) ? $params['value'] : $object->GetDBField($field); $field_options = $object->GetFieldOptions($field); + - if (!array_key_exists('options', $field_options) || !is_array($field_options['options'])) { + if ( !array_key_exists('options', $field_options) || !is_array($field_options['options']) ) { trigger_error('Options not defined for '.$object->Prefix.' field '.$field.'', E_USER_WARNING); + return ''; } @@ -1172,7 +1174,9 @@ $empty_label = mb_substr($empty_label, 1); } else { + if ( !isset($field_options['use_phrases']) || !$field_options['use_phrases'] ) { - $empty_label = $this->Application->Phrase($empty_label, false); + $empty_label = $this->Application->Phrase($empty_label, false); + } } } \ No newline at end of file