check if post var dropfolderfileform1 is set

This commit is contained in:
Uwe Steinmann 2013-03-26 20:20:23 +01:00
parent 9690a77e28
commit 555214c8ed

View File

@ -152,7 +152,7 @@ foreach ($res as $r){
} }
if($settings->_dropFolderDir) { if($settings->_dropFolderDir) {
if($_POST["dropfolderfileform1"]) { if(isset($_POST["dropfolderfileform1"]) && $_POST["dropfolderfileform1"]) {
$fullfile = $settings->_dropFolderDir.'/'.$user->getLogin().'/'.$_POST["dropfolderfileform1"]; $fullfile = $settings->_dropFolderDir.'/'.$user->getLogin().'/'.$_POST["dropfolderfileform1"];
if(file_exists($fullfile)) { if(file_exists($fullfile)) {
/* Check if a local file is uploaded as well */ /* Check if a local file is uploaded as well */