undefined variable

This commit is contained in:
Alexander M. Turek
2002-09-29 08:47:08 +00:00
parent d26406befe
commit b48b7ef22e
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-09-29 Alexander M. Turek <rabus@users.sourceforge.net>
* read_dump.php3: Fixed an "undefined variable" error.
2002-09-28 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/common.lib.php3: $cfg['PmaAbsoluteURI'] detection did not work
properly on IIS 6.0.

View File

@@ -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');