From d3a666f93637621a44986491fc090f3e91bb1283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 26 Sep 2005 20:04:02 +0000 Subject: [PATCH] improve fix for [ 1303994 ] PHP error message on empty queries --- libraries/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 7ea295f22..fb915f831 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -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);