message associated to the query wasn't displayed if the location header is used
This commit is contained in:
@@ -116,7 +116,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
|
|||||||
$message = $strNoModification;
|
$message = $strNoModification;
|
||||||
include('./' . ereg_replace('\.\.*', '.', $goto));
|
include('./' . ereg_replace('\.\.*', '.', $goto));
|
||||||
} else {
|
} else {
|
||||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
header('Location: ' . $cfgPmaAbsoluteUri . $goto . '&message=' . $strNoModification);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -193,7 +193,7 @@ else {
|
|||||||
* page
|
* page
|
||||||
*/
|
*/
|
||||||
mysql_select_db($db);
|
mysql_select_db($db);
|
||||||
$sql_query = $query;
|
$sql_query = $query . ';';
|
||||||
$result = mysql_query($query);
|
$result = mysql_query($query);
|
||||||
|
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
@@ -201,20 +201,20 @@ if (!$result) {
|
|||||||
include('./header.inc.php3');
|
include('./header.inc.php3');
|
||||||
mysql_die($error);
|
mysql_die($error);
|
||||||
} else {
|
} else {
|
||||||
|
if (@mysql_affected_rows()) {
|
||||||
|
$message .= @mysql_affected_rows();
|
||||||
|
} else {
|
||||||
|
$message = $strModifications;
|
||||||
|
}
|
||||||
if (file_exists('./' . $goto)) {
|
if (file_exists('./' . $goto)) {
|
||||||
if ($goto == 'db_details.php3' && !empty($table)) {
|
if ($goto == 'db_details.php3' && !empty($table)) {
|
||||||
unset($table);
|
unset($table);
|
||||||
}
|
}
|
||||||
$js_to_run = 'functions.js';
|
$js_to_run = 'functions.js';
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php3');
|
||||||
if (@mysql_affected_rows()) {
|
|
||||||
$message .= @mysql_affected_rows();
|
|
||||||
} else {
|
|
||||||
$message = $strModifications;
|
|
||||||
}
|
|
||||||
include('./' . ereg_replace('\.\.*', '.', $goto));
|
include('./' . ereg_replace('\.\.*', '.', $goto));
|
||||||
} else {
|
} else {
|
||||||
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
|
header('Location: ' . $cfgPmaAbsoluteUri . $goto . '&message=' . $message);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
} // end if
|
} // end if
|
||||||
|
Reference in New Issue
Block a user