remove unneeded calls, and very if internal relations are enabled before trying to create one

This commit is contained in:
Marc Delisle
2006-11-23 17:25:57 +00:00
parent 84ce8d7017
commit 19a5d15d30
6 changed files with 17 additions and 15 deletions

View File

@@ -10,6 +10,8 @@ require_once './libraries/common.lib.php';
$GLOBALS['PMD']['STYLE'] = 'default';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
function get_tabs() // PMA_DBI
{
global $db;
@@ -56,7 +58,6 @@ function get_script_contr() {
global $db;
PMA_DBI_select_db($db);
$con["C_NAME"] = array();
PMA_getRelationsParam();
$i = 0;
$alltab_rs = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db), NULL, PMA_DBI_QUERY_STORE);
while ($val = @PMA_DBI_fetch_row($alltab_rs)) {
@@ -159,7 +160,6 @@ function get_script_tabs() {
}
function get_tab_pos() {
PMA_getRelationsParam();
$stmt = PMA_query_as_cu("SELECT * FROM " . PMA_backquote($GLOBALS['cfgRelation']['designer_coords']), FALSE, PMA_DBI_QUERY_STORE);
if ( $stmt ) // exist table repository
{