summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/SVG.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/SVG.php')
-rw-r--r--lib/private/Preview/SVG.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php
index cee0f341716..690a6b50ffe 100644
--- a/lib/private/Preview/SVG.php
+++ b/lib/private/Preview/SVG.php
@@ -69,7 +69,7 @@ class SVG extends ProviderV2 {
//new image object
$image = new \OC_Image();
- $image->loadFromData($svg);
+ $image->loadFromData((string) $svg);
//check if image object is valid
if ($image->valid()) {
$image->scaleDownToFit($maxX, $maxY);