Skip to content

Commit

Permalink
fixed bug #456254 - Crash select on a table
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Chapeaux committed Aug 30, 2001
1 parent 19f9970 commit cc2d206
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sql.php3
Expand Up @@ -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'
. '?lang=' . $lang
. '&server=' . $server
Expand All @@ -60,6 +62,11 @@ if (isset($goto) && $goto == 'sql.php3') {
. '&pos=' . $pos
. '&sql_query=' . urlencode($sql_query);
}


/**
* Go back to further page if table should not be dropped
*/
if (isset($btnDrop) && $btnDrop == $strNo) {
if (!empty($back)) {
$goto = $back;
Expand Down

0 comments on commit cc2d206

Please sign in to comment.