X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=f6c84759f8886f2e40c32d568baf4a2b70a7e294;hb=920b5bff2bf2fb1caa10715ed8d40175e4798019;hp=7b6376c8ec0db3413464548cc2852da5bd444cc0;hpb=5c582eb5bacc8b3d9d2775ade454590c71b113ec;p=timetracker.git 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,