missing profile photo in export data

This commit is contained in:
redmatrix 2016-04-06 21:36:47 -07:00
parent aa0412d83b
commit e4391e6336

View File

@ -550,7 +550,8 @@ function identity_basic_export($channel_id, $items = false) {
if($r)
$ret['config'] = $r;
$r = q("select type, data, os_storage from photo where scale = 4 and profile = 1 and uid = %d limit 1",
$r = q("select type, data, os_storage from photo where scale = 4 and photo_usage = %d and uid = %d limit 1",
intval(PHOTO_PROFILE),
intval($channel_id)
);