From 215fba15c0078581f002c3089df73b83f24c3088 Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 13 Nov 2003 21:24:31 +0000 Subject: [PATCH] fix occasional notice --- libs/Config_File.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index a5451d5d..ab37280c 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -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);