fixed bug #520384 - Undefined index: Rows

This commit is contained in:
Loïc Chapeaux
2002-02-23 11:05:03 +00:00
parent f6ae0be900
commit dd211d0c95
2 changed files with 14 additions and 14 deletions

View File

@@ -10,6 +10,7 @@ $Source$
warnings (see bug #521751). warnings (see bug #521751).
* tbl_change.php3, lines 166-168: fixed bug #521589 - float(4,2) and field * tbl_change.php3, lines 166-168: fixed bug #521589 - float(4,2) and field
length. length.
* db_details.php3: fixed bug #520384 - Undefined index: Rows.
2002-02-22 Marc Delisle <lem9@users.sourceforge.net> 2002-02-22 Marc Delisle <lem9@users.sourceforge.net>
* lang/catala.inc.php3 updates, thanks to Xavier Navarro * lang/catala.inc.php3 updates, thanks to Xavier Navarro

View File

@@ -188,10 +188,10 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
</td> </td>
<td bgcolor="<?php echo $bgcolor; ?>"> <td bgcolor="<?php echo $bgcolor; ?>">
<?php <?php
if ($sts_data['Rows']>0) { if (!empty($sts_data['Rows'])) {
echo '<a href="sql.php3?' . $url_query . '&amp;sql_query=' echo '<a href="sql.php3?' . $url_query . '&amp;sql_query='
. urlencode('SELECT * FROM ' . PMA_backquote($table)) . urlencode('SELECT * FROM ' . PMA_backquote($table))
. '&amp;pos=0">' . $strBrowse . '</a>'; . '&amp;pos=0">' . $strBrowse . '</a>';
} else { } else {
echo $strBrowse; echo $strBrowse;
} }
@@ -199,11 +199,11 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
</td> </td>
<td bgcolor="<?php echo $bgcolor; ?>"> <td bgcolor="<?php echo $bgcolor; ?>">
<?php <?php
if ($sts_data['Rows']>0) { if (!empty($sts_data['Rows'])) {
echo '<a href="tbl_select.php3?' . $url_query . '">' echo '<a href="tbl_select.php3?' . $url_query . '">'
. $strSelect . '</a>'; . $strSelect . '</a>';
} else { } else {
echo $strSelect; echo $strSelect;
} }
?> ?>
</td> </td>
@@ -222,14 +222,13 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
</td> </td>
<td bgcolor="<?php echo $bgcolor; ?>"> <td bgcolor="<?php echo $bgcolor; ?>">
<?php <?php
if ($sts_data['Rows'] > 0) { if (!empty($sts_data['Rows'])) {
echo '<a href="sql.php3?' . $url_query echo '<a href="sql.php3?' . $url_query
. '&amp;sql_query=' . '&amp;sql_query='
. urlencode('DELETE FROM ' . PMA_backquote($table)) . urlencode('DELETE FROM ' . PMA_backquote($table))
. '&amp;zero_rows=' . '&amp;zero_rows='
. urlencode(sprintf($strTableHasBeenEmptied, . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)))
htmlspecialchars($table))) . '" onclick="return confirmLink(this, \'DELETE FROM ' . PMA_jsFormat($table) . '\')">' . $strEmpty . '</a>';
. '" onclick="return confirmLink(this, \'DELETE FROM ' . PMA_jsFormat($table) . '\')">' . $strEmpty . '</a>';
} else { } else {
echo $strEmpty; echo $strEmpty;
} }