Update Photo.php
This commit is contained in:
parent
e20c5cf9cf
commit
bd95c7b82a
@ -82,10 +82,11 @@ class Photo extends \Zotlabs\Web\Controller {
|
||||
if($r) {
|
||||
$modified = strtotime($r[0]['edited'] . "Z");
|
||||
$data = dbunescbin($r[0]['content']);
|
||||
$mimetype = $r[0]['mimetype'];
|
||||
if(intval($r[0]['os_storage']))
|
||||
$data = file_get_contents($data);
|
||||
else
|
||||
$data = dbunescbin($r[0]['content']);
|
||||
}
|
||||
if(intval($r[0]['os_storage']))
|
||||
$data = file_get_contents($data);
|
||||
|
||||
if(! $data) {
|
||||
$d = [ 'imgscale' => $resolution, 'channel_id' => $uid, 'default' => $default, 'data' => '', 'mimetype' => '' ];
|
||||
|
Reference in New Issue
Block a user