aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profile_photo.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-04-25 21:34:47 +0200
committerMario Vavti <mario@mariovavti.com>2022-04-25 21:34:47 +0200
commit2d8065a78089412d6947e11e52bd290892fd6566 (patch)
tree26411b06245b3aa9b64b9f0de87e19f4c489a0e3 /Zotlabs/Module/Profile_photo.php
parentb94da93c74fa3cebee50f7756a148ef1df0efe07 (diff)
downloadvolse-hubzilla-2d8065a78089412d6947e11e52bd290892fd6566.tar.gz
volse-hubzilla-2d8065a78089412d6947e11e52bd290892fd6566.tar.bz2
volse-hubzilla-2d8065a78089412d6947e11e52bd290892fd6566.zip
whitespace
Diffstat (limited to 'Zotlabs/Module/Profile_photo.php')
-rw-r--r--Zotlabs/Module/Profile_photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index ecfbca662..a5e87bbe2 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -403,10 +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'])) {