patch #1605032, undefined index

This commit is contained in:
Marc Delisle
2006-11-29 11:04:16 +00:00
parent 883eea7a79
commit 5dd2f3696d
3 changed files with 5 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ $HeadURL$
2006-11-29 Marc Delisle <lem9@users.sourceforge.net>
* lang/spanish update, thanks to Daniel Hinostroza
* sql.php, libraries/display_tbl.lib.php: patch #1605032, checks for
undefined index, thanks to Arpad Borsos
2006-11-26 Marc Delisle <lem9@users.sourceforge.net>
* tbl_structure.php: bug #1602335, browse distinct values

View File

@@ -1106,7 +1106,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
}
} // end if (1.2.1)
if ($table == $GLOBALS['cfg']['Bookmark']['table'] && $db == $GLOBALS['cfg']['Bookmark']['db'] && isset($row[1]) && isset($row[0])) {
if (isset($GLOBALS['cfg']['Bookmark']['table']) && isset($GLOBALS['cfg']['Bookmark']['db']) && $table == $GLOBALS['cfg']['Bookmark']['table'] && $db == $GLOBALS['cfg']['Bookmark']['db'] && isset($row[1]) && isset($row[0])) {
$bookmark_go = '<a href="import.php?'
. PMA_generate_common_url($row[1], '')
. '&amp;id_bookmark=' . $row[0]

View File

@@ -745,9 +745,9 @@ else {
}
} // End INDEX CHECK
// Bookmark Support if required
// Bookmark support if required
if ($disp_mode[7] == '1'
&& (isset($cfg['Bookmark']) && $cfg['Bookmark']['db'] && $cfg['Bookmark']['table'] && empty($id_bookmark))
&& (isset($cfg['Bookmark']) && ! empty($cfg['Bookmark']['db']) && ! empty($cfg['Bookmark']['table']) && empty($id_bookmark))
&& !empty($sql_query)) {
echo "\n";