Avoid duplicating $response

We need to get it just once, see
https://github.com/phpmyadmin/phpmyadmin/issues/13154#issuecomment-300301726

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-05-09 23:43:39 +02:00
parent dbcbee5336
commit d10cf08393

View File

@ -89,7 +89,6 @@ function PMA_getChangePassMessage($change_password_message, $sql_query = '')
/**
* If in an Ajax request, we don't need to show the rest of the page
*/
$response = Response::getInstance();
if ($change_password_message['error']) {
$response->addJSON('message', $change_password_message['msg']);
$response->setRequestStatus(false);