Issue #1928690 by ovidyou | yark: Fixed Search block template: Undefined index: #type.

merge-requests/26/head
David Rothstein 2013-08-05 03:35:55 -04:00
parent 768fe8bc2d
commit af8d800579
1 changed files with 1 additions and 1 deletions

View File

@ -1067,7 +1067,7 @@ function template_preprocess_search_block_form(&$variables) {
$hidden = array();
// Provide variables named after form keys so themers can print each element independently.
foreach (element_children($variables['form']) as $key) {
$type = $variables['form'][$key]['#type'];
$type = isset($variables['form'][$key]['#type']) ? $variables['form'][$key]['#type'] : '';
if ($type == 'hidden' || $type == 'token') {
$hidden[] = drupal_render($variables['form'][$key]);
}