fixed BC for PMA_DBI_get_fields()

This commit is contained in:
Sebastian Mendel
2005-12-09 17:43:06 +00:00
parent fd7d7ab574
commit 76731a6eb8

View File

@@ -601,6 +601,9 @@ function PMA_DBI_get_fields($database, $table, $link = null)
'SHOW FULL COLUMNS
FROM ' . PMA_backquote($database) . '.' . PMA_backquote($table),
null, null, $link);
if ( ! is_array($fields) || count($fields) < 1 ) {
return false;
}
return $fields;
}