diff --git a/plugins/task_handlers/panel_context.inc b/plugins/task_handlers/panel_context.inc index b7b9e42..ca3f8b8 100644 --- a/plugins/task_handlers/panel_context.inc +++ b/plugins/task_handlers/panel_context.inc @@ -760,7 +760,7 @@ function panels_panel_context_edit_settings($form, &$form_state) { $form['conf']['body_classes_to_remove'] = array( '#type' => 'textfield', '#size' => 128, - '#default_value' => $conf['body_classes_to_remove'], + '#default_value' => (empty($conf['body_classes_to_remove'])) ? '' : $conf['body_classes_to_remove'], '#title' => t('Remove body CSS classes'), '#description' => t('The CSS classes to remove from the body element of this page. Separated by a space. For example: no-sidebars one-sidebar sidebar-first sidebar-second two-sidebars.'), ); @@ -768,7 +768,7 @@ function panels_panel_context_edit_settings($form, &$form_state) { $form['conf']['body_classes_to_add'] = array( '#type' => 'textfield', '#size' => 128, - '#default_value' => $conf['body_classes_to_add'], + '#default_value' => (empty($conf['body_classes_to_add'])) ? '' : $conf['body_classes_to_add'], '#title' => t('Add body CSS classes'), '#description' => t('The CSS classes to add to the body element of this page. Separated by a space. For example: no-sidebars one-sidebar sidebar-first sidebar-second two-sidebars.'), );