From fb4c1719efa9a745016bbcc25c1633f0feb6eff9 Mon Sep 17 00:00:00 2001 From: the_systech Date: Fri, 1 Feb 2002 15:07:42 +0000 Subject: [PATCH] Added some checking for mysql4 SQL_LAYER git-svn-id: file:///svn/phpbb/trunk@2033 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_db_utilities.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/phpBB/admin/admin_db_utilities.php b/phpBB/admin/admin_db_utilities.php index 753802bc69..179109e89e 100644 --- a/phpBB/admin/admin_db_utilities.php +++ b/phpBB/admin/admin_db_utilities.php @@ -818,8 +818,16 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) ) for($i = 0; $i < count($tables); $i++) { $table_name = $tables[$i]; - $table_def_function = "get_table_def_" . SQL_LAYER; - $table_content_function = "get_table_content_" . SQL_LAYER; + if(SQL_LAYER != 'mysql4') + { + $table_def_function = "get_table_def_" . SQL_LAYER; + $table_content_function = "get_table_content_" . SQL_LAYER; + } + else + { + $table_def_function = "get_table_def_mysql"; + $table_content_function = "get_table_content_mysql"; + } if($backup_type != 'data') {