From cf15d940cd6d8f94fbe9d25c404b4f9f1372888c Mon Sep 17 00:00:00 2001 From: ninadsp Date: Tue, 22 Jun 2010 11:41:55 +0530 Subject: [PATCH] Bug noticed by Marc Delisle in PMA_ajaxResponse fixed --- libraries/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index b8ef19971..2ef52f692 100755 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2888,7 +2888,7 @@ function PMA_ajaxResponse($message, $success = true, $extra_data = array()) $response = array_merge($response, $extra_data); } - if(!$GLOBALS['is_header_sent']) { + if(!isset($GLOBALS['is_header_sent'])) { header("Content-Type: application/json"); } echo json_encode($response);