From b94da93c74fa3cebee50f7756a148ef1df0efe07 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 25 Apr 2022 21:34:05 +0200 Subject: if we have not been provided a profile id set the profile id to the default profile - fixes #1671 --- Zotlabs/Module/Profile_photo.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php index 022efc2cd..ecfbca662 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'])) { -- cgit v1.2.3