mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:51:35 +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'));
|
$deletedomain = get_var('deletedomain',Array('POST'));
|
||||||
$domains = get_var('domains',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;
|
continue;
|
||||||
}
|
}
|
||||||
$variableName = str_replace('.','_',$k);
|
$variableName = str_replace('.','_',$k);
|
||||||
$dom = get_var('setting_'.$variableName,Array('POST'));
|
$dom = get_var('setting_'.$variableName,Array('POST'));
|
||||||
$GLOBALS['header_template']->set_var('DB_DOMAIN',$v);
|
$GLOBALS['header_template']->set_var('DB_DOMAIN',$v);
|
||||||
while(list($x,$y) = @each($dom))
|
foreach($dom as $x => $y)
|
||||||
{
|
{
|
||||||
if(strtoupper($x) == 'CONFIG_PASS')
|
if(strtoupper($x) == 'CONFIG_PASS')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user