Do not fail on broken table.

This commit is contained in:
Michal Čihař
2004-05-13 19:54:42 +00:00
parent 7c0ae0b17b
commit 28a220fb3c
2 changed files with 3 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ $Source$
* libraries/sqlparser.lib.php, lang/*: Report syntax error when there is
a broken comment (bug #905066).
* db_details_structure.php: Fixed colspan.
* tbl_properties_table_info.php: Do not fail on broken table.
2004-05-12 Marc Delisle <lem9@users.sourceforge.net>
* db_details_structure.php: bug #951143, undefined $header_url_qry

View File

@@ -17,13 +17,13 @@ PMA_checkParameters(array('db', 'table'));
// The 'show table' statement works correct since 3.23.03
$table_info_result = PMA_DBI_query('SHOW TABLE STATUS LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\';');
$showtable = PMA_DBI_fetch_assoc($table_info_result);
$tbl_type = strtoupper($showtable['Type']);
$tbl_type = isset($showtable['Type']) ? strtoupper($showtable['Type']) : '';
$tbl_collation = empty($showtable['Collation']) ? '' : $showtable['Collation'];
$table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
$auto_increment = (isset($showtable['Auto_increment']) ? $showtable['Auto_increment'] : '');
$tmp = explode(' ', $showtable['Create_options']);
$tmp = isset($showtable['Create_options']) ? explode(' ', $showtable['Create_options']) : array();
$tmp_cnt = count($tmp);
for ($i = 0; $i < $tmp_cnt; $i++) {
$tmp1 = explode('=', $tmp[$i]);