Update Photo.php

This commit is contained in:
Max Kostikov 2019-04-05 14:21:05 +02:00
parent ea4b4ddce4
commit 8e0b9b82e9

View File

@ -80,12 +80,12 @@ class Photo extends \Zotlabs\Web\Controller {
intval(PHOTO_PROFILE) intval(PHOTO_PROFILE)
); );
if($r) { if($r) {
$modified = strtotime($r[0]['edited'] . "Z"); $modified = strtotime($r[0]['edited'] . "Z");
$mimetype = $r[0]['mimetype']; $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
$data = dbunescbin($r[0]['content']); $data = dbunescbin($r[0]['content']);
} }
if(! $data) { if(! $data) {