message associated to the query wasn't displayed if the location header is used

This commit is contained in:
Loïc Chapeaux
2001-09-08 22:46:39 +00:00
parent 23c23a2ce2
commit 3f99dcdbc6

View File

@@ -253,7 +253,7 @@ else {
unset($db); unset($db);
} }
} }
if (file_exists('./' . $goto)) {
if ($is_delete) { if ($is_delete) {
$message = $strDeletedRows . ' ' . $num_rows; $message = $strDeletedRows . ' ' . $num_rows;
} else if ($is_insert) { } else if ($is_insert) {
@@ -265,6 +265,8 @@ else {
} else { } else {
$message = $strEmptyResultSet; $message = $strEmptyResultSet;
} }
if (file_exists('./' . $goto)) {
$goto = ereg_replace('\.\.*', '.', $goto); $goto = ereg_replace('\.\.*', '.', $goto);
if ($goto == 'db_details.php3' && !empty($table)) { if ($goto == 'db_details.php3' && !empty($table)) {
unset($table); unset($table);
@@ -278,8 +280,7 @@ else {
include('./' . $goto); include('./' . $goto);
} // end if file_exist } // end if file_exist
else { else {
$message = $zero_rows; header('Location: ' . $cfgPmaAbsoluteUri . $goto . '&message=' . $message);
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
} // end else } // end else
exit(); exit();
} // end no rows returned } // end no rows returned