From 3e94c7a2d8eaf02a2e77561b591e822a91227d47 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Thu, 23 Apr 2015 17:51:19 +0200 Subject: [PATCH] Fix system warning + notice in install.php These error messages appeared if the installer is run when the config file exists but the database it references does not. Fixes #17805 --- admin/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/install.php b/admin/install.php index 263d51c134..39dbdd3ac8 100644 --- a/admin/install.php +++ b/admin/install.php @@ -188,7 +188,8 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes $f_timezone = config_get( 'default_timezone', '' ); # Set default prefix/suffix form variables ($f_db_table_XXX) - foreach( $t_prefix_defaults['other'] as $t_key => $t_value ) { + $t_prefix_type = 'other'; + foreach( $t_prefix_defaults[$t_prefix_type] as $t_key => $t_value ) { ${'f_' . $t_key} = $t_value; } } else {