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