diff --git a/modules/field/modules/options/options.module b/modules/field/modules/options/options.module index e97f1916469..3862ba77874 100644 --- a/modules/field/modules/options/options.module +++ b/modules/field/modules/options/options.module @@ -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'; } } diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 9f5711bf5ef..219f360cf3a 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -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.