From f1191170436abca52b274f912474b75967b5ccd4 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Thu, 18 Jul 2002 16:39:47 +0000 Subject: [PATCH] fixed warnings and faults --- ChangeLog | 1 + db_printview.php3 | 6 +++--- tbl_printview.php3 | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b210bf2ef..47fbe9e56 100755 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,7 @@ $Source$ * It is now possible to print stats for more than 2 GB (up to exa byte) * db_details_structure.php3: correct wrong link from table size to stats * tbl_printview.php3: fixed warnings if relation is not defined + * db_printview.php3: fixed warnings and faults 2002-07-17 Marc Delisle * lang/sync_lang.sh: support for multiple convertors (recode added), diff --git a/db_printview.php3 b/db_printview.php3 index 6e5dfbe35..50d47fe0e 100755 --- a/db_printview.php3 +++ b/db_printview.php3 @@ -28,12 +28,12 @@ if (PMA_MYSQL_INT_VERSION >= 32303) { // Special speedup for newer MySQL Versions (in 4.0 format changed) if ($cfg['SkipLockedTables'] == TRUE && PMA_MYSQL_INT_VERSION >= 32330) { $local_query = 'SHOW OPEN TABLES FROM ' . PMA_backquote($db); - $result = PMA_mysql_query($query) or PMA_mysqlDie('', $local_query, '', $err_url); + $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); // Blending out tables in use if ($result != FALSE && mysql_num_rows($result) > 0) { while ($tmp = PMA_mysql_fetch_array($result)) { // if in use memorize tablename - if (eregi('in_use=[1-9]+', $tmp)) { + if (eregi('in_use=[1-9]+', $tmp[0])) { $sot_cache[$tmp[0]] = TRUE; } } @@ -41,7 +41,7 @@ if (PMA_MYSQL_INT_VERSION >= 32303) { if (isset($sot_cache)) { $local_query = 'SHOW TABLES FROM ' . PMA_backquote($db); - $result = PMA_mysql_query($query) or PMA_mysqlDie('', $local_query, '', $err_url); + $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); if ($result != FALSE && mysql_num_rows($result) > 0) { while ($tmp = PMA_mysql_fetch_array($result)) { if (!isset($sot_cache[$tmp[0]])) { diff --git a/tbl_printview.php3 b/tbl_printview.php3 index a1a8b1142..3071b2531 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -167,7 +167,7 @@ while (list($key, $table) = each($the_tables)) { } } else { - $have_rel = FALSE; + $have_rel = FALSE; } // end if