improve fix for [ 1303994 ] PHP error message on empty queries
This commit is contained in:
@@ -597,7 +597,7 @@ if ($is_minimum_common == FALSE) {
|
|||||||
// Revised, Robbat2 - 13 January 2003, 2:59PM
|
// Revised, Robbat2 - 13 January 2003, 2:59PM
|
||||||
if (!function_exists('PMA_SQP_isError') || PMA_SQP_isError()) {
|
if (!function_exists('PMA_SQP_isError') || PMA_SQP_isError()) {
|
||||||
$formatted_sql = htmlspecialchars($the_query);
|
$formatted_sql = htmlspecialchars($the_query);
|
||||||
} elseif (empty($the_query)) {
|
} elseif (empty($the_query) || trim($the_query) == '') {
|
||||||
$formatted_sql = '';
|
$formatted_sql = '';
|
||||||
} else {
|
} else {
|
||||||
$formatted_sql = PMA_formatSql(PMA_SQP_parse(PMA_sanitize($the_query)), $the_query);
|
$formatted_sql = PMA_formatSql(PMA_SQP_parse(PMA_sanitize($the_query)), $the_query);
|
||||||
|
Reference in New Issue
Block a user