fixed bug #536707 - undefined variables

This commit is contained in:
Loïc Chapeaux
2002-03-29 11:48:15 +00:00
parent 32129798a3
commit 7d391b3ce6
2 changed files with 5 additions and 4 deletions

View File

@@ -41,10 +41,10 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
. '&sql_query=' . urlencode($sql_query);
}
// Defines the url to return in case of failure of the query
if (isset($url_err)) {
$url_err = urldecode($url_err);
if (isset($err_url)) {
$err_url = urldecode($err_url);
} else {
$url_err = str_replace('&', '&', $goto)
$err_url = str_replace('&', '&', $goto)
. (empty($primary_key) ? '' : '&primary_key=' . $primary_key);
}
// Resets tables defined in the configuration file
@@ -233,7 +233,7 @@ $result = mysql_query($query);
if (!$result) {
$error = mysql_error();
include('./header.inc.php3');
PMA_mysqlDie($error, '', '', $url_err);
PMA_mysqlDie($error, '', '', $err_url);
} else {
if (@mysql_affected_rows()) {
$message .= @mysql_affected_rows();