Index: trunk/kernel/include/modules.php =================================================================== diff -u -r3576 -r3863 --- trunk/kernel/include/modules.php (.../modules.php) (revision 3576) +++ trunk/kernel/include/modules.php (.../modules.php) (revision 3863) @@ -553,14 +553,13 @@ function _ModuleLicensed($name) { global $i_Keys, $objConfig, $pathtoroot; - $vars = parse_portal_ini($pathtoroot."config.php"); + $vars = parse_portal_ini($pathtoroot.'config.php'); - // globalize vars from config - while($key = key($vars)) - { - $GLOBALS["g_".$key] = current($vars); - next($vars); + // globalize vars from config (theese vars are already present, why to do this again?) + foreach ($vars as $config_key => $config_value) { + $GLOBALS['g_'.$config_key] = $config_value; } + $lic = base64_decode($GLOBALS['g_License']); _ParseLicense($lic);