summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object/RenderStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/SSRS/Object/RenderStream.php')
-rwxr-xr-xlibrary/SSRS/Object/RenderStream.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/library/SSRS/Object/RenderStream.php b/library/SSRS/Object/RenderStream.php
index 58482b6..02cbb33 100755
--- a/library/SSRS/Object/RenderStream.php
+++ b/library/SSRS/Object/RenderStream.php
@@ -7,9 +7,11 @@ class RenderStream extends ObjectAbstract {
public $Result;
public $MimeType;
- public function __construct(\stdClass $stream) {
- $this->Result = $stream->Result;
- $this->MimeType = $stream->MimeType;
+ public function __construct(\stdClass $stream = null) {
+ if ($stream) {
+ $this->Result = $stream->Result;
+ $this->MimeType = $stream->MimeType;
+ }
}
public function __toString() {