Squash unlink warning in CcFiles.php
This commit is contained in:
parent
48b4eaacd6
commit
99d16444d2
1 changed files with 4 additions and 3 deletions
|
@ -95,9 +95,10 @@ class CcFiles extends BaseCcFiles {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
self::createAndImport($fileArray, $tempFilePath, $originalFilename);
|
self::createAndImport($fileArray, $tempFilePath, $originalFilename);
|
||||||
} catch (Exception $e)
|
} catch (Exception $e) {
|
||||||
{
|
if (file_exists($tempFilePath)) {
|
||||||
@unlink($tempFilePath);
|
unlink($tempFilePath);
|
||||||
|
}
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue