diff --git a/server_privileges.php b/server_privileges.php index 308739cf1..a9ebcd96b 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -1451,7 +1451,9 @@ if( $GLOBALS['is_ajax_request'] && !isset($_REQUEST['export']) && (!isset($_REQU $extra_data['new_privileges'] = $new_privileges; } - PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); + if ($message instanceof PMA_Message) { + PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); + } } /**