diff --git a/plugins/FeedsParser.inc b/plugins/FeedsParser.inc index c5fc8c0c785f0fce206fc99aeff88c527494b834..fcf75f571154b6c4b610d766600b58e7d28c4ff2 100644 --- a/plugins/FeedsParser.inc +++ b/plugins/FeedsParser.inc @@ -155,14 +155,15 @@ class FeedsEnclosure extends FeedsElement { /** * @return - * The file path to the downloaded resource referenced by the enclosure. - * Downloads resource if not downloaded yet. + * A temporary file path to the downloaded resource referenced by the + * enclosure. Downloads resource if not downloaded yet. The file path is + * valid for the time of the page load. * * @todo Get file extension from mime_type. * @todo This is not concurrency safe. */ public function getFile() { - if(!isset($this->file) && $this->getValue()) { + if(empty($this->file) && $this->getValue()) { $filename = basename($this->getValue()); if (module_exists('transliteration')) { require_once (drupal_get_path('module', 'transliteration') . '/transliteration.inc');