$table_name = $adminer->tableName($table_status);
if (is_ajax()) {
// needs to send headers
- ob_start('clean_output');
+ ob_start();
}
page_header(lang('Select') . ": $table_name", $error);
echo (!$group && $select ? "" : "<script type='text/javascript'>tableCheck();</script>\n");
}
- if ($rows || $page) {
+ if (($rows || $page) && !is_ajax()) {
$exact_count = true;
if ($_GET["page"] != "last" && +$limit && count($group) >= count($select) && ($found_rows >= $limit || $page)) {
$found_rows = found_rows($table_status, $where);
}
if (is_ajax()) {
+ ob_end_clean();
exit;
}