Bug noticed by Marc Delisle in PMA_ajaxResponse fixed

This commit is contained in:
ninadsp
2010-06-22 11:41:55 +05:30
parent fff89f83a8
commit cf15d940cd

View File

@@ -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);