Update Photo.php
This commit is contained in:
parent
ea4b4ddce4
commit
8e0b9b82e9
@ -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) {
|
||||||
|
Reference in New Issue
Block a user