Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Sep 19, 2014
1 parent 0809fd1 commit a1b13c0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions libraries/operations.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1633,9 +1633,8 @@ function PMA_moveOrCopyTable($db, $table)
} else {
$message = PMA_Message::error(__('Can\'t copy table to same one!'));
}
$result = false;
} else {
$result = PMA_Table::moveCopy(
PMA_Table::moveCopy(
$db, $table, $_REQUEST['target_db'], $_REQUEST['new_name'],
$_REQUEST['what'], isset($_REQUEST['submit_move']), 'one_table'
);
Expand All @@ -1660,27 +1659,20 @@ function PMA_moveOrCopyTable($db, $table)
if (isset($_REQUEST['submit_move'])
|| PMA_isValid($_REQUEST['switch_to_new'])
) {
$db = $_REQUEST['target_db'];
$table = $_REQUEST['new_name'];
}
}
} else {
/**
* No new name for the table!
*/
$message = PMA_Message::error(__('The table name is empty!'));
$result = false;
}

if ($GLOBALS['is_ajax_request'] == true) {
$response = PMA_Response::getInstance();
$response->addJSON('message', $message);
if ($message->isSuccess()) {
$response->addJSON('db', $GLOBALS['db']);
$response->addJSON(
'sql_query',
PMA_Util::getMessage(null, $sql_query)
);
} else {
$response->isSuccess(false);
}
Expand Down

0 comments on commit a1b13c0

Please sign in to comment.