diff --git a/libraries/File.php b/libraries/File.php index 64259ca9f5..3b7725db6d 100644 --- a/libraries/File.php +++ b/libraries/File.php @@ -197,7 +197,11 @@ class File */ public function getContent() { - return '0x' . bin2hex($this->getRawContent()); + $result = $this->getRawContent(); + if ($result === false) { + return false; + } + return '0x' . bin2hex($result); } /** @@ -810,4 +814,4 @@ class File { return strlen($this->_content); } -} \ No newline at end of file +}