mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== trunk =====
|
||||
01.08.2012
|
||||
- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608)
|
||||
|
||||
30.07.2012
|
||||
-bugfix {assign} in a nocache section should not overwrite existing variable values
|
||||
during compilation (issue 109)
|
||||
|
@@ -240,9 +240,8 @@ class Smarty_Internal_Config {
|
||||
}
|
||||
// scan sections
|
||||
if (!empty($sections)) {
|
||||
$sections = array_flip((array) $sections);
|
||||
foreach ($_config_vars['sections'] as $this_section => $dummy) {
|
||||
if (isset($sections[$this_section])) {
|
||||
foreach ((array) $sections as $this_section) {
|
||||
if (isset($_config_vars['sections'][$this_section])) {
|
||||
foreach ($_config_vars['sections'][$this_section]['vars'] as $variable => $value) {
|
||||
if ($this->smarty->config_overwrite || !isset($scope_ptr->config_vars[$variable])) {
|
||||
$scope_ptr->config_vars[$variable] = $value;
|
||||
|
Reference in New Issue
Block a user