Issue #1509838 by tim.plunkett, cosmicdreams klausi: Use elseif not else if
parent
d690e71b08
commit
7d64f9578e
|
@ -211,7 +211,7 @@ function _options_properties($type, $multiple, $required, $has_value) {
|
|||
if (!$required) {
|
||||
$properties['empty_option'] = 'option_none';
|
||||
}
|
||||
else if (!$has_value) {
|
||||
elseif (!$has_value) {
|
||||
$properties['empty_option'] = 'option_select';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1576,7 +1576,7 @@ function taxonomy_field_formatter_prepare_view($entity_type, $entities, $field,
|
|||
$items[$id][$delta]['taxonomy_term'] = $terms[$item['tid']];
|
||||
}
|
||||
// Terms to be created are not in $terms, but are still legitimate.
|
||||
else if ($item['tid'] == 'autocreate') {
|
||||
elseif ($item['tid'] == 'autocreate') {
|
||||
// Leave the item in place.
|
||||
}
|
||||
// Otherwise, unset the instance value, since the term does not exist.
|
||||
|
|
Loading…
Reference in New Issue