diff --git a/libraries/pmd_common.php b/libraries/pmd_common.php index 03e018c5cc..d174b11800 100644 --- a/libraries/pmd_common.php +++ b/libraries/pmd_common.php @@ -123,8 +123,7 @@ function PMA_getScriptContr() ); while ($val = @$GLOBALS['dbi']->fetchRow($alltab_rs)) { $row = PMA_getForeigners($GLOBALS['db'], $val[0], '', 'internal'); - //echo "
internal ".$GLOBALS['db']." - ".$val[0]." - "; - //print_r($row); + if ($row !== false) { foreach ($row as $field => $value) { $con['C_NAME'][$i] = ''; @@ -138,8 +137,7 @@ function PMA_getScriptContr() } } $row = PMA_getForeigners($GLOBALS['db'], $val[0], '', 'foreign'); - //echo "
INNO "; - //print_r($row); + if ($row !== false) { foreach ($row['foreign_keys_data'] as $one_key) { foreach ($one_key['index_list'] as $index => $one_field) {