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,18 +253,20 @@ else {
unset($db); unset($db);
} }
} }
if ($is_delete) {
$message = $strDeletedRows . ' ' . $num_rows;
} else if ($is_insert) {
$message = $strInsertedRows . ' ' . $num_rows;
} else if ($is_affected) {
$message = $strAffectedRows . ' ' . $num_rows;
} else if (!empty($zero_rows)) {
$message = $zero_rows;
} else {
$message = $strEmptyResultSet;
}
if (file_exists('./' . $goto)) { if (file_exists('./' . $goto)) {
if ($is_delete) {
$message = $strDeletedRows . ' ' . $num_rows;
} else if ($is_insert) {
$message = $strInsertedRows . ' ' . $num_rows;
} else if ($is_affected) {
$message = $strAffectedRows . ' ' . $num_rows;
} else if (!empty($zero_rows)) {
$message = $zero_rows;
} else {
$message = $strEmptyResultSet;
}
$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