diff --git a/libraries/tbl_replace_fields.inc.php b/libraries/tbl_replace_fields.inc.php index 356305419..60ef6ae97 100644 --- a/libraries/tbl_replace_fields.inc.php +++ b/libraries/tbl_replace_fields.inc.php @@ -116,7 +116,7 @@ if ($me_fields_upload != 'none') { } unset($tmp_subdir); } - } elseif (! empty($me_fields_uploadlocal)) { + } elseif (! empty($me_fields_uploadlocal) && !empty($GLOBALS['cfg']['UploadDir'])) { // ... or selected file from $cfg['UploadDir'] $file_to_insert = PMA_userDir($GLOBALS['cfg']['UploadDir']) . preg_replace('@\.\.*@', '.', $me_fields_uploadlocal);