X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5c582eb5bacc8b3d9d2775ade454590c71b113ec..920b5bff2bf2fb1caa10715ed8d40175e4798019:/time.php diff --git a/time.php b/time.php index 7b6376c8..f6c84759 100644 --- a/time.php +++ b/time.php @@ -395,7 +395,7 @@ if ($request->isPost()) { } // Put a new file in storage if we have it. - if ($showFiles && $_FILES['newfile']['name']) { + if ($id && $showFiles && $_FILES['newfile']['name']) { $fileHelper = new ttFileHelper($err); $fields = array('entity_type'=>'time', 'entity_id' => $id,