diff --git a/ChangeLog b/ChangeLog index 56ced6cae..4dcd41929 100755 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,8 @@ $Source$ * lang/turkish update, thanks to Bora Alioglu * lang/romanian: Updated, thanks to Valics Lehel. * lang/ukrainian: update, thanks to Markijan Baran + * sql.php3: bug 782828, do not go into confirm dialog if we are coming + from "Create PHP Code" or "Without PHP Code" 2003-08-04 Michal Cihar * lang/czech: Updated. diff --git a/sql.php3 b/sql.php3 index ea8e0b615..4aaf706cd 100755 --- a/sql.php3 +++ b/sql.php3 @@ -171,7 +171,12 @@ if (isset($btnDrop) && $btnDrop == $strNo) { if (!$cfg['Confirm'] || (isset($is_js_confirmed) && $is_js_confirmed) || isset($btnDrop) - || !empty($GLOBALS['show_as_php']) + + // if we are coming from a "Create PHP code" or a "Without PHP Code" + // dialog, we won't execute the query anyway, so don't confirm + //|| !empty($GLOBALS['show_as_php']) + || isset($GLOBALS['show_as_php']) + || !empty($GLOBALS['validatequery'])) { $do_confirm = FALSE; } else {