fixed bug of not written domains under windows with new php's:

It's a bit obscure:
$deletedomain='';
$domain='default';
isset($deletedomain[$domain]) === true
under linux this is NOT true
fixed it by using: is_array($deletedomain) && isset($deletedomain[$domain])
This commit is contained in:
Ralf Becker 2005-11-20 12:43:50 +00:00
parent 5bf7cc575c
commit cde824505e

View File

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