diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-04-25 22:16:39 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-04-25 22:16:39 +0200 |
commit | e386499bfacdefff6c8b1c47cb16f0aa732a9daa (patch) | |
tree | 61992c689d955163b6621a6a3ae03972dba3e674 /Zotlabs/Module | |
parent | 930b9820f2829a129a93ed619a68754d2b43b530 (diff) | |
parent | 4552630bf884682c3e8ceb45bcf369a59bb1ce7e (diff) | |
download | volse-hubzilla-e386499bfacdefff6c8b1c47cb16f0aa732a9daa.tar.gz volse-hubzilla-e386499bfacdefff6c8b1c47cb16f0aa732a9daa.tar.bz2 volse-hubzilla-e386499bfacdefff6c8b1c47cb16f0aa732a9daa.zip |
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Profile_photo.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php index 022efc2cd..a5e87bbe2 100644 --- a/Zotlabs/Module/Profile_photo.php +++ b/Zotlabs/Module/Profile_photo.php @@ -403,6 +403,10 @@ class Profile_photo extends Controller { foreach ($r as $rr) { if ($rr['is_default']) { $default_profile_id = intval($rr['id']); + + if (!$profile_id) { + $profile_id = $default_profile_id; + } } if ($profile_id === intval($rr['id'])) { |