From 9fc66f3eaebe5ddb67ddc319117243b9b194b9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Mon, 20 Aug 2001 16:55:17 +0000 Subject: [PATCH] go back to the previous calling script that is not a confirmation form in case of error --- ChangeLog | 3 +++ lib.inc.php3 | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 08acae19f..4e38a9775 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,9 @@ $Source$ * lib.inc.php3; sql.php3: optimized a bit and started to work on feature #444767 (Other cases for display=simple). * user_details.php3: fixed some javascript bugs. + * tbl_change.php3, lines 26 & 31: added some mysql_die() calls. + * lib.inc.php3, lines 135 & 147: go back to the previous calling script + that is not a confirmation form. 2001-08-19 Olivier Müller * db_readdump.php3: if file contains mutiple queries, only show this line: diff --git a/lib.inc.php3 b/lib.inc.php3 index 0a7723465..4f8962eab 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -132,6 +132,7 @@ if (!defined('__LIB_INC__')){ if (empty($the_query)) { $the_query = $GLOBALS['sql_query']; } + $hist = (isset($GLOBALS['btnDrop'])) ? -2 : -1; echo ''. $GLOBALS['strError'] . '' . "\n"; if (!empty($the_query)) { @@ -143,7 +144,7 @@ if (!defined('__LIB_INC__')){ echo '

' . "\n"; echo ' ' . $GLOBALS['strMySQLSaid'] . ' ' . htmlspecialchars($error_message) . "\n"; echo '

' . "\n"; - echo '' . $GLOBALS['strBack'] . ''; + echo '' . $GLOBALS['strBack'] . ''; include('./footer.inc.php3'); exit(); @@ -941,7 +942,7 @@ var errorMsg2 = ' $GLOBALS['cfgMaxRows'])) { + && (!isset($SelectNumRows) || $SelectNumRows > 1)) { show_table_navigation($pos_next, $pos_prev, $dt_result); } else { echo "\n" . '

' . "\n"; @@ -1192,7 +1193,7 @@ var errorMsg2 = ' $GLOBALS['cfgMaxRows'])) { + && (!isset($SelectNumRows) || $SelectNumRows > 1)) { show_table_navigation($pos_next, $pos_prev, $dt_result); } else { echo "\n" . '
' . "\n";