From cc2d2069772e92c3ca743f14a19bcbfc46dd7be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 30 Aug 2001 18:53:58 +0000 Subject: [PATCH] fixed bug #456254 - Crash select on a table --- sql.php3 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sql.php3 b/sql.php3 index 0c81268c9..dc8d031f2 100755 --- a/sql.php3 +++ b/sql.php3 @@ -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 @@ -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;