Issue #1509838 by cosmicdreams, klausi: Use elseif not else if
parent
37da825bed
commit
80189e786e
|
@ -46,7 +46,7 @@ function drupal_var_export($var, $prefix = '') {
|
|||
$output = "'" . $var . "'";
|
||||
}
|
||||
}
|
||||
else if (is_object($var) && get_class($var) === 'stdClass') {
|
||||
elseif (is_object($var) && get_class($var) === 'stdClass') {
|
||||
// var_export() will export stdClass objects using an undefined
|
||||
// magic method __set_state() leaving the export broken. This
|
||||
// workaround avoids this by casting the object as an array for
|
||||
|
|
|
@ -208,7 +208,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';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1328,7 +1328,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