Commit c902a2f5 authored by omerida's avatar omerida Committed by Alan Davison
Browse files

Issue 1024770 by Alan D.: Preventing PHP notice.

parent d73569cb
......@@ -34,9 +34,11 @@ function search_config_form_alter(&$form, &$form_state, $form_id) {
$form['#submit'] = array('search_config_form_submit');
$form['module']['#value'] = variable_get('search_config_default_search', 'node');
$form['module']['#type'] = 'value';
$form['processed_keys'] = $form['search_theme_form_keys'];
$form['processed_keys']['#weight'] = -1;
unset($form['search_theme_form_keys']);
if (isset($form['search_theme_form_keys'])) {
$form['processed_keys'] = $form['search_theme_form_keys'];
$form['processed_keys']['#weight'] = -1;
unset($form['search_theme_form_keys']);
}
}
if ($form_id == 'search_form' && user_access('use advanced search')) {
......
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