From b48b7ef22e3199b6480f997dbaaa45a46adac6d5 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 29 Sep 2002 08:47:08 +0000 Subject: [PATCH] undefined variable --- ChangeLog | 3 +++ read_dump.php3 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37064f0fa..5fb0f29b9 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-09-29 Alexander M. Turek + * read_dump.php3: Fixed an "undefined variable" error. + 2002-09-28 Alexander M. Turek * libraries/common.lib.php3: $cfg['PmaAbsoluteURI'] detection did not work properly on IIS 6.0. diff --git a/read_dump.php3 b/read_dump.php3 index 5d76b264c..fed6eb45e 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -235,7 +235,7 @@ if ($sql_file != 'none') { // if ((file_exists($sql_file) && is_uploaded_file($sql_file)) // || file_exists($cfg['UploadDir'] . $sql_localfile)) { if (file_exists($sql_file) - && (($sql_file == $cfg['UploadDir'] . $sql_localfile) || is_uploaded_file($sql_file))) { + && ((isset($sql_localfile) && $sql_file == $cfg['UploadDir'] . $sql_localfile) || is_uploaded_file($sql_file))) { $open_basedir = ''; if (PMA_PHP_INT_VERSION >= 40000) { $open_basedir = @ini_get('open_basedir');