CC-5950: Fix for issue where clear button in Recent Uploads didn't work
sometimes
This commit is contained in:
parent
32bdbe1ad6
commit
e7e1926896
1 changed files with 7 additions and 1 deletions
|
@ -355,7 +355,13 @@ SQL;
|
|||
{
|
||||
$exists = false;
|
||||
try {
|
||||
$exists = file_exists($this->getFilePath());
|
||||
//Explicitly check filepath because if it's blank, getFilePath() can
|
||||
//still return a directory that exists.
|
||||
if (!$this->_file->getDbFilepath()) {
|
||||
$exists = false;
|
||||
} else {
|
||||
$exists = file_exists($this->getFilePath());
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue