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)
);
if($r) {
$modified = strtotime($r[0]['edited'] . "Z");
$mimetype = $r[0]['mimetype'];
$modified = strtotime($r[0]['edited'] . "Z");
$mimetype = $r[0]['mimetype'];
if(intval($r[0]['os_storage']))
$data = file_get_contents($data);
else
$data = dbunescbin($r[0]['content']);
$data = file_get_contents($data);
else
$data = dbunescbin($r[0]['content']);
}
if(! $data) {