fix multidomain header-generation

This commit is contained in:
Ralf Becker 2003-03-05 14:21:49 +00:00
parent 982f00b803
commit e19a2ee41d
2 changed files with 4 additions and 4 deletions

View File

@ -31,11 +31,11 @@
@reset($domains); @reset($domains);
while($domains && list($k,$v) = @each($domains)) while($domains && list($k,$v) = @each($domains))
{ {
if(isset($deletedomain[$v])) if(isset($deletedomain[$k]))
{ {
continue; continue;
} }
$dom = get_var('setting_'.$v,Array('POST')); $dom = get_var('setting_'.$k,Array('POST'));
$GLOBALS['header_template']->set_var('DB_DOMAIN',$v); $GLOBALS['header_template']->set_var('DB_DOMAIN',$v);
while(list($x,$y) = @each($dom)) while(list($x,$y) = @each($dom))
{ {

View File

@ -38,11 +38,11 @@
while(list($k,$v) = @each($domains)) while(list($k,$v) = @each($domains))
{ {
$deletedomain = get_var('deletedomain',Array('POST')); $deletedomain = get_var('deletedomain',Array('POST'));
if(isset($deletedomain[$v])) if(isset($deletedomain[$k]))
{ {
continue; continue;
} }
$dom = get_var('setting_'.$v,Array('POST')); $dom = get_var('setting_'.$k,Array('POST'));
if(!$dom['config_pass']) if(!$dom['config_pass'])
{ {
$errors .= '<br>' . lang("You didn't enter a config password for domain x",$v); $errors .= '<br>' . lang("You didn't enter a config password for domain x",$v);