fixed bug #488317 - 'only_db' problem with the 2.2.x

This commit is contained in:
Loïc Chapeaux
2001-12-03 19:26:34 +00:00
parent 1f8e2bc413
commit 0b393ba3e4

View File

@@ -580,8 +580,8 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
// else if (mysql_error()) {
// PMA_mysqlDie('', $local_query, FALSE);
// }
while ($row = @mysql_fetch_array($rs)) {
$true_dblist[] = $row['Database'];
while ($row = @mysql_fetch_row($rs)) {
$true_dblist[] = $row[0];
} // end while
if ($rs) {
mysql_free_result($rs);