From 7a3da21570fee6d26f4e6ba97a08a4e12202dc95 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 3 Oct 2009 13:48:42 +0000 Subject: [PATCH] use high-level function to avoid an undefined value --- libraries/server_synchronize.lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/server_synchronize.lib.php b/libraries/server_synchronize.lib.php index cd9910f26..339c1a90c 100644 --- a/libraries/server_synchronize.lib.php +++ b/libraries/server_synchronize.lib.php @@ -646,9 +646,7 @@ function PMA_createTargetTables($src_db, $trg_db, $src_link, $trg_link, &$uncomm } $uncommon_tables_fields[$table_index] = $fields; - $Show_create_query = "SHOW CREATE TABLE ".PMA_backquote($src_db). '.' .PMA_backquote($uncommon_tables[$table_index]); - $Show_create_result = PMA_DBI_fetch_result($Show_create_query, null, null, $src_link); - $Create_Query = $Show_create_result[0]['Create Table']; + $Create_Query = PMA_DBI_fetch_value("SHOW CREATE TABLE " . PMA_backquote($src_db) . '.' . PMA_backquote($uncommon_tables[$table_index]), 0, 1, $src_link); // Replace the src table name with a `dbname`.`tablename` $Create_Table_Query = preg_replace('/' . PMA_backquote($uncommon_tables[$table_index]) . '/',