From e3567e49f3abe68876be42fbe2b491017b2d29da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sat, 8 Oct 2005 10:53:55 +0000 Subject: [PATCH] Do not show error on empty query. --- ChangeLog | 1 + libraries/sqlparser.lib.php | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8f26014ec..ceb5bc32b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ $Source$ query splitting done im read_dump. * libraries/import/sql.php: Fix import of queries containing `, fix import of queries not terminated by ;. + * libraries/sqlparser.lib.php: Do not show error on empty query. 2005-10-07 Marc Delisle * libraries/check_user_privileges.lib.php: bug #1313821, dbname containing a diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php index b44ff7988..8713193b9 100644 --- a/libraries/sqlparser.lib.php +++ b/libraries/sqlparser.lib.php @@ -693,6 +693,7 @@ if ($is_minimum_common == FALSE) { */ function PMA_SQP_analyze($arr) { + if ($arr == array()) return array(); $result = array(); $size = $arr['len']; $subresult = array(