Squash unlink warning in CcFiles.php
This commit is contained in:
parent
48b4eaacd6
commit
99d16444d2
|
@ -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…
Reference in New Issue