mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
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:
parent
5bf7cc575c
commit
cde824505e
@ -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')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user