check exported profile photo isn't empty

This commit is contained in:
Mike Macgirvin 2022-11-03 14:53:34 -07:00
parent 7c220440c4
commit ebdfd2abde

View file

@ -979,7 +979,7 @@ class Channel
intval($channel_id)
);
if ($r) {
if ($r && $r[0]['content']) {
$ret['photo'] = [
'type' => $r[0]['mimetype'],
'data' => (($r[0]['os_storage'])