Added some checks to avoid trying to use relations when no table (bug #761835).

This commit is contained in:
Michal Čihař
2003-06-27 13:58:45 +00:00
parent f320c80dee
commit dd4295651c
3 changed files with 18 additions and 10 deletions

View File

@@ -305,7 +305,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
} // end while
}
if ($source == 'both' || $source == 'innodb') {
if (($source == 'both' || $source == 'innodb') && !empty($table)) {
$show_create_table_query = 'SHOW CREATE TABLE '
. PMA_backquote($db) . '.' . PMA_backquote($table);
$show_create_table_res = PMA_mysql_query($show_create_table_query);