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