fixed bug #456254 - Crash select on a table

This commit is contained in:
Loïc Chapeaux
2001-08-30 18:53:58 +00:00
parent 19f99708df
commit cc2d206977

View File

@@ -49,9 +49,11 @@ if (isset($btnDrop) || isset($navig)) {
/** /**
* Go back to further page if table should not be dropped * Sets or modifies the $goto variable if required
*/ */
if (isset($goto) && $goto == 'sql.php3') { if (empty($goto)) {
$goto = (empty($table)) ? 'db_details.php3' : 'tbl_properties.php3';
} else if ($goto == 'sql.php3') {
$goto = 'sql.php3' $goto = 'sql.php3'
. '?lang=' . $lang . '?lang=' . $lang
. '&server=' . $server . '&server=' . $server
@@ -60,6 +62,11 @@ if (isset($goto) && $goto == 'sql.php3') {
. '&pos=' . $pos . '&pos=' . $pos
. '&sql_query=' . urlencode($sql_query); . '&sql_query=' . urlencode($sql_query);
} }
/**
* Go back to further page if table should not be dropped
*/
if (isset($btnDrop) && $btnDrop == $strNo) { if (isset($btnDrop) && $btnDrop == $strNo) {
if (!empty($back)) { if (!empty($back)) {
$goto = $back; $goto = $back;