diff --git a/libraries/replication.inc.php b/libraries/replication.inc.php
index b4c5f4419..aa060586b 100644
--- a/libraries/replication.inc.php
+++ b/libraries/replication.inc.php
@@ -235,10 +235,10 @@ function PMA_replication_master_replicated_dbs($link = null)
$ignore_db = array();
if (!empty($data[0]['Binlog_Do_DB'])) {
- $do_db = explode($data[0]['Binlog_Do_DB'], ',');
+ $do_db = explode(',', $data[0]['Binlog_Do_DB']);
}
if (!empty($data[0]['Binlog_Ignore_DB'])) {
- $ignore_db = explode($data[0]['Binlog_Ignore_DB'], ',');
+ $ignore_db = explode(',', $data[0]['Binlog_Ignore_DB']);
}
$tmp_alldbs = PMA_DBI_query('SHOW DATABASES;', $link);
@@ -330,6 +330,7 @@ function PMA_replication_synchronize_db($db, $src_link, $trg_link, $data = true)
{
PMA_dataDiffInUncommonTables($source_tables_uncommon, $src_db, $src_link, $j, $row_count);
}
+
/**
* INTEGRATION OF STRUCTURE DIFFERENCE CODE
*
diff --git a/libraries/replication_gui.lib.php b/libraries/replication_gui.lib.php
index 0d850b2e4..e1115fe21 100644
--- a/libraries/replication_gui.lib.php
+++ b/libraries/replication_gui.lib.php
@@ -25,9 +25,9 @@ $jscode['configure_master'] =
'});'."\n".
'$(\'db_type\').addEvent(\'change\',function() {'."\n".
' if ($(\'db_type\').getSelected().get(\'value\')=="all")'."\n".
- ' $(\'rep\').set(\'html\', c_text+c_ignore+c_output+\';\');'."\n".
+ ' $(\'rep\').set(\'html\', c_text+c_ignore+c_output);'."\n".
' else'."\n".
- ' $(\'rep\').set(\'html\', c_text+c_do+c_output+\';\');'."\n".
+ ' $(\'rep\').set(\'html\', c_text+c_do+c_output);'."\n".
'});'."\n".
'$(\'db_select\').addEvent(\'change\',function() {'."\n".
@@ -104,20 +104,20 @@ function PMA_replication_gui_changemaster($submitname) {
echo $GLOBALS['strSlaveConfigure'].'
'."\n";
echo '
server-id='.time().''."\n"; echo '