From 367d508d215b3473d3d569703b55b54af74ae1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 15 Jun 2004 17:27:17 +0000 Subject: [PATCH] On error show edit link with table context if possible. --- ChangeLog | 2 ++ libraries/common.lib.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4318e2058..bf3c6d1c1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,8 @@ $Source$ * tbl_change.php: Fix wrong path to image. * tbl_properties_operations.php: Define sort order for sorting tables (RFE #971314). + * libraries/common.lib.php: On error show edit link with table context if + possible. 2004-06-15 Alexander M. Turek * libraries/config_import.lib.php: The default settings should be merged. diff --git a/libraries/common.lib.php b/libraries/common.lib.php index d0a24e193..07ab4756b 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -615,7 +615,11 @@ if ($is_minimum_common == FALSE) { echo PMA_showMySQLDocu('Reference', 'SELECT'); } if ($is_modify_link && isset($db)) { - $doedit_goto = ''; + if (isset($table)) { + $doedit_goto = ''; + } else { + $doedit_goto = ''; + } if ($GLOBALS['cfg']['PropertiesIconic']) { echo $doedit_goto . '' . $GLOBALS['strEdit'] .''