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).
* 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 <lem9@users.sourceforge.net>
* lang/catala.inc.php3 updates, thanks to Xavier Navarro

View File

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