diff --git a/library/SimplePie/File.php b/library/SimplePie/File.php index 2f1cfedc1..be5b22b6d 100644 --- a/library/SimplePie/File.php +++ b/library/SimplePie/File.php @@ -282,7 +282,7 @@ public function __construct($url, $timeout = 10, $redirects = 5, $headers = null else { $this->method = SIMPLEPIE_FILE_SOURCE_LOCAL | SIMPLEPIE_FILE_SOURCE_FILE_GET_CONTENTS; - if (!$this->body = file_get_contents($url)) + if (empty($url) || !($this->body = file_get_contents($url))) { $this->error = 'file_get_contents could not read the file'; $this->success = false;