#34434 by beginner, properly initialize a variable.

5.x
Neil Drumm 2006-06-23 08:31:23 +00:00
parent 963dc77bb7
commit 7ced1e694b
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,9 @@ function form_error(&$element, $message = '') {
function form_builder($form_id, $form) {
global $form_values, $form_submitted, $form_button_counter;
// Initialize as unprocessed.
$form['#processed'] = FALSE;
/* Use element defaults */
if ((!empty($form['#type'])) && ($info = _element_info($form['#type']))) {
// overlay $info onto $form, retaining preexisting keys in $form