diff options
author | redmatrix <git@macgirvin.com> | 2016-04-06 21:36:47 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-06 21:36:47 -0700 |
commit | e4391e6336e9994d963b6c9e669be9b0d59e21b8 (patch) | |
tree | dc863fee056013f7a8e8350cd43c00b5a8da43b6 /include | |
parent | aa0412d83bd4ffb1e5208020ccae269e7cc13a3b (diff) | |
download | volse-hubzilla-e4391e6336e9994d963b6c9e669be9b0d59e21b8.tar.gz volse-hubzilla-e4391e6336e9994d963b6c9e669be9b0d59e21b8.tar.bz2 volse-hubzilla-e4391e6336e9994d963b6c9e669be9b0d59e21b8.zip |
missing profile photo in export data
Diffstat (limited to 'include')
-rw-r--r-- | include/identity.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/identity.php b/include/identity.php index 849742c8e..9bb4fb3c5 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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) ); |