From 6b4f99f5c99baeef3c75c17aa15e034b1de76205 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sat, 15 Feb 2003 12:29:24 +0000 Subject: [PATCH] Don't display edit link for database-independant queries. --- ChangeLog | 2 ++ libraries/common.lib.php3 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1dd0be111..28f1bef5b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-02-15 Alexander M. Turek * ANNOUNCE.txt: Prepared announcement for 2.4.0. Please feel free to correct it if necessary. + * libraries/common.lib.php3: Don't display edit link for + database-independant queries. 2003-02-14 Alexander M. Turek * server_databases.php3, server_privileges.php3, lang/*.inc.php3: diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 557f42d1e..cfd800528 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1246,7 +1246,7 @@ if (typeof(document.getElementById) != 'undefined' //if (!isset($GLOBALS['goto'])) { //$edit_target = (isset($GLOBALS['table'])) ? $cfg['DefaultTabTable'] : $cfg['DefaultTabDatabase']; - $edit_target = (isset($GLOBALS['table'])) ? 'tbl_properties.php3' : 'db_details.php3'; + $edit_target = isset($GLOBALS['db']) ? (isset($GLOBALS['table']) ? 'tbl_properties.php3' : 'db_details.php3') : ''; //} else if ($GLOBALS['goto'] != 'main.php3') { // $edit_target = $GLOBALS['goto']; //} else {