patch #1605032, undefined index
This commit is contained in:
@@ -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
|
||||
|
@@ -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], '')
|
||||
. '&id_bookmark=' . $row[0]
|
||||
|
4
sql.php
4
sql.php
@@ -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";
|
||||
|
||||
|
Reference in New Issue
Block a user