diff --git a/server_privileges.php b/server_privileges.php index cb9cc59b7cb8..4b302af73e0a 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -1676,13 +1676,13 @@ function PMA_getGrants($user, $host) // export user definition if (isset($_REQUEST['export']) || (isset($_REQUEST['submit_mult']) && $_REQUEST['submit_mult'] == 'export')) { - $response = ''; + $export .= ''; unset($username, $hostname, $grants, $one_grant); if ($GLOBALS['is_ajax_request']) { $response = PMA_Response::getInstance(); - $response->addJSON('message', $response); + $response->addJSON('message', $export); $response->addJSON('title', $title); exit; } else { - echo "

$title

$response"; + echo "

$title

$export"; } }