From 7d391b3ce64d477e750c3483fef17b53feeed130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 29 Mar 2002 11:48:15 +0000 Subject: [PATCH] fixed bug #536707 - undefined variables --- ChangeLog | 1 + tbl_replace.php3 | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 750f81cc3..ab1f67257 100755 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ $Source$ * Documentation.html: removed trailing whitespaces. * libraries/display_tbl.lib.php3: very very light optimizations. * tbl_change.php3: fixed bug #535984 - JS Error in tbl_change.php3. + * tbl_replace.php3: fixed bug #536707 - undefined variables. 2002-03-28 Marc Delisle * sql.php3, bug #535648: bookmarks can't be saved on the second server. diff --git a/tbl_replace.php3 b/tbl_replace.php3 index 926b82417..2d9db6316 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -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();