mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fix occasional notice
This commit is contained in:
@@ -260,7 +260,10 @@ class Config_File {
|
|||||||
$_triple_quotes = $match[1];
|
$_triple_quotes = $match[1];
|
||||||
$_i = 0;
|
$_i = 0;
|
||||||
$contents = preg_replace('/""".*"""/Use', '"\x1b\x1b\x1b".$_i++."\x1b\x1b\x1b"', $contents);
|
$contents = preg_replace('/""".*"""/Use', '"\x1b\x1b\x1b".$_i++."\x1b\x1b\x1b"', $contents);
|
||||||
|
} else {
|
||||||
|
$_triple_quotes = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get global variables first. */
|
/* Get global variables first. */
|
||||||
if ($contents{0} != '[' && preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match))
|
if ($contents{0} != '[' && preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match))
|
||||||
$config_data["vars"] = $this->_parse_config_block($match[1], $_triple_quotes);
|
$config_data["vars"] = $this->_parse_config_block($match[1], $_triple_quotes);
|
||||||
|
Reference in New Issue
Block a user