Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/db/db_tag_processor.php
Context not available. | |||||
$field = $params['field']; | $field = $params['field']; | ||||
$value = array_key_exists('value', $params) ? $params['value'] : $object->GetDBField($field); | $value = array_key_exists('value', $params) ? $params['value'] : $object->GetDBField($field); | ||||
$field_options = $object->GetFieldOptions($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 <strong>'.$object->Prefix.'</strong> field <strong>'.$field.'</strong>', E_USER_WARNING); | trigger_error('Options not defined for <strong>'.$object->Prefix.'</strong> field <strong>'.$field.'</strong>', E_USER_WARNING); | ||||
return ''; | return ''; | ||||
} | } | ||||
Context not available. | |||||
$empty_label = mb_substr($empty_label, 1); | $empty_label = mb_substr($empty_label, 1); | ||||
} | } | ||||
else { | else { | ||||
$empty_label = $this->Application->Phrase($empty_label, false); | if ( !isset($field_options['use_phrases']) || !$field_options['use_phrases'] ) { | ||||
$empty_label = $this->Application->Phrase($empty_label, false); | |||||
} | |||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file | ||||
Context not available. |