Do not send html headers for ajax request in this case.

This commit is contained in:
Michal Čihař
2011-02-17 14:30:44 +01:00
parent c1398b4ff1
commit 4a6adc7e29

View File

@@ -325,7 +325,9 @@ if ($is_insert && count($value_sets) > 0) {
// No change -> move back to the calling script
$message = PMA_Message::success(__('No change'));
$active_page = $goto_include;
if(!$GLOBALS['is_ajax_request'] == true) {
require_once './libraries/header.inc.php';
}
require './' . PMA_securePath($goto_include);
exit;
}