store browse state in session per query
This commit is contained in:
@@ -11,13 +11,6 @@
|
||||
require_once './libraries/common.inc.php';
|
||||
require_once './libraries/mysql_charsets.lib.php';
|
||||
|
||||
/**
|
||||
* Avoids undefined variables
|
||||
*/
|
||||
if (!isset($pos)) {
|
||||
$pos = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* No rows were selected => show again the query and tell that user.
|
||||
*/
|
||||
@@ -113,10 +106,9 @@ if (!empty($submit_mult)) {
|
||||
default:
|
||||
$action = 'tbl_row_action.php';
|
||||
$err_url = 'tbl_row_action.php?' . PMA_generate_common_url($db, $table);
|
||||
if (!isset($mult_btn)) {
|
||||
if (! isset($mult_btn)) {
|
||||
$original_sql_query = $sql_query;
|
||||
$original_url_query = $url_query;
|
||||
$original_pos = $pos;
|
||||
}
|
||||
require './libraries/mult_submits.inc.php';
|
||||
$url_query = PMA_generate_common_url($db, $table)
|
||||
@@ -140,10 +132,6 @@ if (!empty($submit_mult)) {
|
||||
$url_query = $original_url_query;
|
||||
}
|
||||
|
||||
if (isset($original_pos)) {
|
||||
$pos = $original_pos;
|
||||
}
|
||||
|
||||
// this is because sql.php could call tbl_structure
|
||||
// which would think it needs to call mult_submits.inc.php:
|
||||
unset($submit_mult);
|
||||
|
Reference in New Issue
Block a user