fix occasional notice

This commit is contained in:
messju
2003-11-13 21:24:31 +00:00
parent 2be563b152
commit 215fba15c0

View File

@@ -260,7 +260,10 @@ class Config_File {
$_triple_quotes = $match[1];
$_i = 0;
$contents = preg_replace('/""".*"""/Use', '"\x1b\x1b\x1b".$_i++."\x1b\x1b\x1b"', $contents);
} else {
$_triple_quotes = null;
}
/* Get global variables first. */
if ($contents{0} != '[' && preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match))
$config_data["vars"] = $this->_parse_config_block($match[1], $_triple_quotes);