diff options
Diffstat (limited to 'frontends/php/httpconf.php')
| -rw-r--r-- | frontends/php/httpconf.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/php/httpconf.php b/frontends/php/httpconf.php index bdc4bc2b..7e7e863e 100644 --- a/frontends/php/httpconf.php +++ b/frontends/php/httpconf.php @@ -271,6 +271,19 @@ include_once "include/page_header.php"; } ?> <?php + /* make steps with unique names */ + $_REQUEST['steps'] = get_request('steps',array()); + foreach($_REQUEST['steps'] as $s1id => $s1) + { + foreach($_REQUEST['steps'] as $s2id => $s2) + { + if($s1['name'] == $s2['name'] && $s1id != $s2id) + { + $_REQUEST['steps'][$s1id] = $_REQUEST['steps'][$s2id]; + unset($_REQUEST['steps'][$s2id]); + } + } + } $_REQUEST['steps'] = array_merge(get_request('steps',array())); /* reinitialize keys */ $form = new CForm(); |
