diff --git a/module/testcase/model.php b/module/testcase/model.php index 4d1b77eaaa..803d2f30fc 100755 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -1216,7 +1216,7 @@ class testcaseModel extends model $filePath = pathinfo($file->pathname, PATHINFO_BASENAME); $datePath = substr($file->pathname, 0, 6); $filePath = $this->app->getAppRoot() . "www/data/upload/{$this->app->company->id}/" . "{$datePath}/" . $filePath; - unlink($filePath); + if(file_exists($filePath)) unlink($filePath); } } if(isset($caseID))