bug #1712570 Deleting last record freezes (sorry for the double commit)

This commit is contained in:
Marc Delisle
2007-05-09 13:10:08 +00:00
parent ef312fc70b
commit 73696f116f
2 changed files with 5 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ [data] display all warnings, not only last one + [data] display all warnings, not only last one
- typo in fix for bug #1671813 - typo in fix for bug #1671813
- bug #1714908 Inserted Row Count is wrong - bug #1714908 Inserted Row Count is wrong
- bug #1712570 Deleting last record freezes
2.10.1.0 (2007-04-23) 2.10.1.0 (2007-04-23)
===================== =====================

View File

@@ -642,6 +642,10 @@ if ($num_rows < 1 || $is_affected) {
$active_page = $goto; $active_page = $goto;
require './' . $goto; require './' . $goto;
} else { } 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('&amp;', '&', $goto) . '&message=' . urlencode($message)); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . str_replace('&amp;', '&', $goto) . '&message=' . urlencode($message));
} // end else } // end else
exit(); exit();