improve fix for [ 1303994 ] PHP error message on empty queries

This commit is contained in:
Michal Čihař
2005-09-26 20:04:02 +00:00
parent 46a89458e3
commit d3a666f936

View File

@@ -597,7 +597,7 @@ if ($is_minimum_common == FALSE) {
// Revised, Robbat2 - 13 January 2003, 2:59PM
if (!function_exists('PMA_SQP_isError') || PMA_SQP_isError()) {
$formatted_sql = htmlspecialchars($the_query);
} elseif (empty($the_query)) {
} elseif (empty($the_query) || trim($the_query) == '') {
$formatted_sql = '';
} else {
$formatted_sql = PMA_formatSql(PMA_SQP_parse(PMA_sanitize($the_query)), $the_query);