fixed bug #520384 - Undefined index: Rows
This commit is contained in:
@@ -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
|
||||
|
@@ -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 . '&sql_query='
|
||||
. urlencode('SELECT * FROM ' . PMA_backquote($table))
|
||||
. '&pos=0">' . $strBrowse . '</a>';
|
||||
. urlencode('SELECT * FROM ' . PMA_backquote($table))
|
||||
. '&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
|
||||
. '&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 . '</a>';
|
||||
. '&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 . '</a>';
|
||||
} else {
|
||||
echo $strEmpty;
|
||||
}
|
||||
|
Reference in New Issue
Block a user