Skip to content
Snippets Groups Projects
Commit 29073c00 authored by Alex Barth's avatar Alex Barth
Browse files

#783820 klonos: Fix warning: copy() [function.copy]: Filename cannot be empty...

#783820 klonos: Fix warning: copy() [function.copy]: Filename cannot be empty in FeedsParser.inc on line 168.
parent ca91e96f
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
Feeds 6.x 1.0 xxxxxxxxxxxxxxxxxxxx
----------------------------------
- #783820 klonos: Fix warning: copy() [function.copy]: Filename cannot be empty
in FeedsParser.inc on line 168.
- #778416 clemens.tolboom: Better message when plugin is missing.
- #760140 lyricnz: FeedsBatch->total not updated when addItem($item) is called.
- #755544 Monkey Master: Keep batch processing when mapping fails.
......
......@@ -162,7 +162,7 @@ class FeedsEnclosure extends FeedsElement {
* @todo This is not concurrency safe.
*/
public function getFile() {
if(!isset($this->file)) {
if(!isset($this->file) && $this->getValue()) {
$dest = file_destination(file_directory_temp() .'/'. get_class($this) .'-'. basename($this->getValue()), FILE_EXISTS_RENAME);
if (ini_get('allow_url_fopen')) {
$this->file = copy($this->getValue(), $dest) ? $dest : 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment