From 8d862a8cb5c9b8dc37ae1aea10205eec35e68ae8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 1 May 2011 06:50:37 -0400 Subject: [PATCH] Bug #3294818 Fatal error in server_privileges.php (bot access) --- server_privileges.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } /**