Index: trunk/globals.php =================================================================== diff -u -N -r3834 -r3850 --- trunk/globals.php (.../globals.php) (revision 3834) +++ trunk/globals.php (.../globals.php) (revision 3850) @@ -1676,9 +1676,11 @@ return Array(); } - foreach($main as $vl_key => $vl_value) { - if(!$vl_value) $main[$vl_key] = '0'; // unset($main[$vl_key]); - } + if ($main) { + foreach($main as $vl_key => $vl_value) { + if(!$vl_value) $main[$vl_key] = '0'; // unset($main[$vl_key]); + } + } $ret = Array(); foreach($var_list as $src_name => $dst_name) { Index: trunk/core/kernel/utility/http_query.php =================================================================== diff -u -N -r3834 -r3850 --- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3834) +++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3850) @@ -323,7 +323,7 @@ $this->Application->VerifyThemeId(); $this->Set('t', $this->getDefaultTemplate('') ); - $this->finalizeParsing('m'); + $this->finalizeParsing(Array('m')); return false; } else