X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5c582eb5bacc8b3d9d2775ade454590c71b113ec..764eef2d0dd9c6561f88579dbb4e6323d1702d14:/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,