Commit 787597ed authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fix Problem with uninitialised variable in case existing upload exist, file deleted, press save

parent f23f0c7d
......@@ -386,6 +386,8 @@ class Save {
// No new upload and no existing: take care to remove previous upload file statistics.
$this->store->unsetVar(VAR_FILE_MIME_TYPE, STORE_VAR);
$this->store->unsetVar(VAR_FILE_SIZE, STORE_VAR);
$vars[VAR_FILE_SIZE]=0;
$vars[VAR_FILE_MIME_TYPE]='';
} else {
$vars = HelperFile::getFileStat($pathFileNameTmp);
$this->store->appendToStore($vars, STORE_VAR);
......
......@@ -32,6 +32,7 @@ class Logger {
*/
public static function logMessage($msg, $filename, $mode = FILE_MODE_APPEND, $recursion = false) {
return;
$handle = false;
if ($filename == '') {
......@@ -46,6 +47,8 @@ class Logger {
$dummy=1;
}
$cwd1=getcwd();
if($handle===false) {
if($recursion){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment