diff --git a/ChangeLog b/ChangeLog index 376fd2438..4525df1a0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-05-02 Marc Delisle + * libraries/get_foreign.lib.php3: bug 731480: was not counting + the rows of the foreign, thanks to Stefan Elssner + 2003-05-02 Garvin Hicking * css/phpmyadmin.css.php3: Small typo, seems to be solution of support request #728820 diff --git a/libraries/get_foreign.lib.php3 b/libraries/get_foreign.lib.php3 index 9bd083c1e..ee450fe6c 100755 --- a/libraries/get_foreign.lib.php3 +++ b/libraries/get_foreign.lib.php3 @@ -27,7 +27,7 @@ // We could also do the SELECT anyway, with a LIMIT, and ensure that // the current value of the field is one of the choices. - $the_total = PMA_countRecords($db, $table, TRUE); + $the_total = PMA_countRecords($foreign_db, $foreign_table, TRUE); if ($the_total < 200) { // foreign_display can be FALSE if no display field defined: