From dd211d0c955e4451f550c0be8cba7d67d7049931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 23 Feb 2002 11:05:03 +0000 Subject: [PATCH] fixed bug #520384 - Undefined index: Rows --- ChangeLog | 1 + db_details.php3 | 27 +++++++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 516cd3cb4..3aa2f94c1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ warnings (see bug #521751). * tbl_change.php3, lines 166-168: fixed bug #521589 - float(4,2) and field length. + * db_details.php3: fixed bug #520384 - Undefined index: Rows. 2002-02-22 Marc Delisle * lang/catala.inc.php3 updates, thanks to Xavier Navarro diff --git a/db_details.php3 b/db_details.php3 index 15a1dab42..1520bd105 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -188,10 +188,10 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) { 0) { + if (!empty($sts_data['Rows'])) { echo '' . $strBrowse . ''; + . urlencode('SELECT * FROM ' . PMA_backquote($table)) + . '&pos=0">' . $strBrowse . ''; } else { echo $strBrowse; } @@ -199,11 +199,11 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) { 0) { - echo '' - . $strSelect . ''; + if (!empty($sts_data['Rows'])) { + echo '' + . $strSelect . ''; } else { - echo $strSelect; + echo $strSelect; } ?> @@ -222,14 +222,13 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) { 0) { + if (!empty($sts_data['Rows'])) { echo '' . $strEmpty . ''; + . '&sql_query=' + . urlencode('DELETE FROM ' . PMA_backquote($table)) + . '&zero_rows=' + . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) + . '" onclick="return confirmLink(this, \'DELETE FROM ' . PMA_jsFormat($table) . '\')">' . $strEmpty . ''; } else { echo $strEmpty; }