diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-05 23:18:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-05 23:18:33 +0000 |
commit | 3ed807e4f3f495a4680dfc4ff0724e28482105e5 (patch) | |
tree | 48976729c348b2f95afbd752c5a108eea855e1ce /usr/local/www/wizard.php | |
parent | e2cf9497f3243a0fb71231b78b73019752bbc05a (diff) | |
download | pfsense-3ed807e4f3f495a4680dfc4ff0724e28482105e5.zip pfsense-3ed807e4f3f495a4680dfc4ff0724e28482105e5.tar.gz |
Move the stepsubmitphpaction out of the field collection. It was not setting the root password correctly.
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-x | usr/local/www/wizard.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index b908b26..86306b5 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -73,12 +73,13 @@ if ($_POST) { if($field['bindstofield']) update_config_field( $field['bindstofield'], $_POST[$fieldname], $unset_fields, $arraynum); } - // run custom php code embedded in xml config. - if($pkg['step'][$stepid]['stepsubmitphpaction']) { - eval($pkg['step'][$stepid]['stepsubmitphpaction']); - } - write_config(); + } + // run custom php code embedded in xml config. + if($pkg['step'][$stepid]['stepsubmitphpaction'] <> "") { + eval($pkg['step'][$stepid]['stepsubmitphpaction']); + } + write_config(); $stepid++; if($stepid > $totalsteps) $stepid = $totalsteps; } |