Show links only when editing

This commit is contained in:
Michal Čihař
2011-02-02 14:48:36 +01:00
parent a6e1212d12
commit f2ebfe1bd5

View File

@@ -24,7 +24,6 @@ PMA_checkParameters(array('db', 'table'));
*/
require_once './libraries/tbl_common.php';
require_once './libraries/tbl_info.inc.php';
require_once './libraries/tbl_links.inc.php';
$active_page = 'tbl_structure.php';
@@ -156,6 +155,8 @@ if (isset($_REQUEST['do_save_data'])) {
* $selected comes from multi_submits.inc.php
*/
if ($abort == false) {
require_once './libraries/tbl_links.inc.php';
if (! isset($selected)) {
PMA_checkParameters(array('field'));
$selected[] = $_REQUEST['field'];