CC-5950: Fix for issue where clear button in Recent Uploads didn't work

sometimes
This commit is contained in:
Albert Santoni 2014-11-18 17:11:09 -05:00
parent 32bdbe1ad6
commit e7e1926896

View file

@ -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;
}