From 5911dbcf11d64873ebb1ea5d5ee29f74348257b5 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 14 May 2003 12:20:05 +0000 Subject: [PATCH] RFE #641760 (SQL with no DB) --- ChangeLog | 1 + read_dump.php3 | 3 +++ tbl_query_box.php3 | 2 ++ 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 81438041e..c20a87d11 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ better fix for #624712), by Maxime Delorme. Thanks! * tbl_change.php3: RFE #737174 implemented (comments welcome) * tbl_change.php3: RFE #723124 implemented (reset button) + * read_dump.php3, tbl_query_box.php3: RFE #641760 2003-05-13 Marc Delisle * libraries/sqlparser.data.php3: bug 736793, new reserved diff --git a/read_dump.php3 b/read_dump.php3 index 31e194bec..a76ab79b3 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -9,6 +9,9 @@ require('./libraries/read_dump.lib.php3'); require('./libraries/grab_globals.lib.php3'); require('./libraries/common.lib.php3'); +if (!isset($db)) { + $db = ''; +} /** * Increases the max. allowed time to run a script diff --git a/tbl_query_box.php3 b/tbl_query_box.php3 index c29f62c51..ec77cd91f 100755 --- a/tbl_query_box.php3 +++ b/tbl_query_box.php3 @@ -72,6 +72,8 @@ if ($cfg['QueryFrame'] && (!$cfg['QueryFrameJS'] && !$db || ($cfg['QueryFrameJS' $queryframe_db_list .= ''; } $queryframe_db_list .= ''; + } else { + $queryframe_db_list = ''; } } else { $queryframe_db_list = '';