Index: trunk/globals.php =================================================================== diff -u -r407 -r415 --- trunk/globals.php (.../globals.php) (revision 407) +++ trunk/globals.php (.../globals.php) (revision 415) @@ -1375,14 +1375,13 @@ // functions for dealign with enviroment variable construction function GenerateModuleEnv($prefix, $var_list) -{ +{ // globalize module varible arrays $main =& $GLOBALS[$prefix.'_var_list']; $update =& $GLOBALS[$prefix.'_var_list_update']; - //echo "VAR: [$main]; VAR_UPDATE: [$update]
"; - // enshure that we have no empty values in enviroment variable + // ensure that we have no empty values in enviroment variable foreach($update as $vl_key => $vl_value) if(!$vl_value) $update[$vl_key] = '0'; // unset($update[$vl_key]); @@ -1405,6 +1404,7 @@ // (used in module parsers to build env string) $main =& $GLOBALS[$prefix.'_var_list']; $update =& $GLOBALS[$prefix.'_var_list_update']; + return isset($update[$name]) ? $update[$name] : ( isset($main[$name]) ? $main[$name] : ''); }