initalized h_tabs

This commit is contained in:
ankitg
2010-06-23 11:39:52 +05:30
parent bc910761d6
commit f3d9b75c35

View File

@@ -239,10 +239,12 @@ function get_script_tabs()
$script_tabs = $script_tabs =
'<script type="text/javascript">' . "\n" . '<script type="text/javascript">' . "\n" .
'// <![CDATA[' . "\n" . '// <![CDATA[' . "\n" .
'var j_tabs = new Array();' . "\n"; 'var j_tabs = new Array();' . "\n" .
'var h_tabs = new Array();' . "\n" ;
for ($i = 0, $cnt = count($GLOBALS['PMD']['TABLE_NAME']); $i < $cnt; $i++) { for ($i = 0, $cnt = count($GLOBALS['PMD']['TABLE_NAME']); $i < $cnt; $i++) {
$script_tabs .= "j_tabs['" . $GLOBALS['PMD_URL']['TABLE_NAME'][$i] . "'] = '" $script_tabs .= "j_tabs['" . $GLOBALS['PMD_URL']['TABLE_NAME'][$i] . "'] = '"
. (PMA_foreignkey_supported($GLOBALS['PMD']['TABLE_TYPE'][$i]) ? '1' : '0') . "';\n"; . (PMA_foreignkey_supported($GLOBALS['PMD']['TABLE_TYPE'][$i]) ? '1' : '0') . "';\n";
$script_tabs .="h_tabs['" . $GLOBALS['PMD_URL']['TABLE_NAME'][$i] . "'] = 1;"."\n" ;
} }
$script_tabs .= $script_tabs .=
'// ]]>' . "\n" . '// ]]>' . "\n" .