Commit 99a8f075 authored by Dries's avatar Dries
Browse files

- Patch #160620 by kkaefer: E_NOTICE fix.

parent 7d0cf742
......@@ -353,7 +353,9 @@ function locale_languages_edit_form_submit($form, &$form_state) {
if ($default->language == $form_state['values']['langcode']) {
$properties = array('name', 'native', 'direction', 'enabled', 'plurals', 'formula', 'domain', 'prefix', 'weight');
foreach ($properties as $keyname) {
$default->$keyname = $form_state['values'][$keyname];
if (isset($form_state['values'][$keyname])) {
$default->$keyname = $form_state['values'][$keyname];
}
}
variable_set('language_default', $default);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment