Don't display edit link for database-independant queries.

This commit is contained in:
Alexander M. Turek
2003-02-15 12:29:24 +00:00
parent 0702039276
commit 6b4f99f5c9
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2003-02-15 Alexander M. Turek <rabus@users.sourceforge.net>
* 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 <rabus@users.sourceforge.net>
* server_databases.php3, server_privileges.php3, lang/*.inc.php3:

View File

@@ -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 {