Update Photo.php

This commit is contained in:
Max Kostikov 2019-04-05 14:17:39 +02:00
parent bd95c7b82a
commit ea4b4ddce4

View File

@ -81,7 +81,7 @@ class Photo extends \Zotlabs\Web\Controller {
); );
if($r) { if($r) {
$modified = strtotime($r[0]['edited'] . "Z"); $modified = strtotime($r[0]['edited'] . "Z");
$data = dbunescbin($r[0]['content']); $mimetype = $r[0]['mimetype'];
if(intval($r[0]['os_storage'])) if(intval($r[0]['os_storage']))
$data = file_get_contents($data); $data = file_get_contents($data);
else else