Squash unlink warning in CcFiles.php
This commit is contained in:
parent
48b4eaacd6
commit
99d16444d2
|
@ -95,9 +95,10 @@ class CcFiles extends BaseCcFiles {
|
|||
|
||||
try {
|
||||
self::createAndImport($fileArray, $tempFilePath, $originalFilename);
|
||||
} catch (Exception $e)
|
||||
{
|
||||
@unlink($tempFilePath);
|
||||
} catch (Exception $e) {
|
||||
if (file_exists($tempFilePath)) {
|
||||
unlink($tempFilePath);
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue