bug #1712570 Deleting last record freezes (sorry for the double commit)
This commit is contained in:
@@ -62,6 +62,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
+ [data] display all warnings, not only last one
|
||||
- typo in fix for bug #1671813
|
||||
- bug #1714908 Inserted Row Count is wrong
|
||||
- bug #1712570 Deleting last record freezes
|
||||
|
||||
2.10.1.0 (2007-04-23)
|
||||
=====================
|
||||
|
4
sql.php
4
sql.php
@@ -642,6 +642,10 @@ if ($num_rows < 1 || $is_affected) {
|
||||
$active_page = $goto;
|
||||
require './' . $goto;
|
||||
} else {
|
||||
// avoid a redirect loop when last record was deleted
|
||||
if ('sql.php' == $cfg['DefaultTabTable']) {
|
||||
$goto = str_replace('sql.php','tbl_structure.php',$goto);
|
||||
}
|
||||
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&', '&', $goto) . '&message=' . urlencode($message));
|
||||
} // end else
|
||||
exit();
|
||||
|
Reference in New Issue
Block a user