Issue #1509838 by tim.plunkett, cosmicdreams klausi: Use elseif not else if

merge-requests/26/head
Jennifer Hodgdon 2012-04-27 09:37:22 -07:00
parent d690e71b08
commit 7d64f9578e
2 changed files with 2 additions and 2 deletions

View File

@ -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';
}
}

View File

@ -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.