From 8c0d179e3e43c6c9e2e8e95d26c1dbdb80c26f36 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Mon, 30 Jun 2014 01:01:48 +0200 Subject: [PATCH] [ticket/12775] Set defined_vars as a property of config_php_file PHPBB3-12775 --- phpBB/phpbb/config_php_file.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/phpbb/config_php_file.php b/phpBB/phpbb/config_php_file.php index c0aa3567e6..1a562e470d 100644 --- a/phpBB/phpbb/config_php_file.php +++ b/phpBB/phpbb/config_php_file.php @@ -42,6 +42,8 @@ class config_php_file */ protected $config_file; + private $defined_vars; + /** * Constructor * @@ -108,7 +110,6 @@ class config_php_file { if (file_exists($this->config_file)) { - $this->defined_vars = null; $this->defined_vars = get_defined_vars(); require($this->config_file);