aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_convert.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-08 15:14:50 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-08 15:14:50 +0000
commit281c8763bd2f3d7e9dd83e7e7772009f18a69b86 (patch)
tree2e2f45e29fb06a44870e953b001307b4d7ee2cba /phpBB/includes/functions_convert.php
parent539ac00f02f24266f598fb746b2e145e1ec46182 (diff)
downloadforums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar.gz
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar.bz2
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar.xz
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.zip
#9659
#9569 git-svn-id: file:///svn/phpbb/trunk@7302 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_convert.php')
-rw-r--r--phpBB/includes/functions_convert.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php
index f2988792a6..8aa8f597e8 100644
--- a/phpBB/includes/functions_convert.php
+++ b/phpBB/includes/functions_convert.php
@@ -1194,7 +1194,7 @@ function restore_config($schema)
{
if (preg_match('/(.*)\((.*)\)/', $src, $m))
{
- $var = (empty($m[2])) ? '' : "'" . addslashes($convert_config[$m[2]]) . "'";
+ $var = (empty($m[2]) || empty($convert_config[$m[2]])) ? '' : "'" . addslashes($convert_config[$m[2]]) . "'";
$exec = '$config_value = ' . $m[1] . '(' . $var . ');';
eval($exec);
}