X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProfile.php;h=5180a3ea2e002fcc9f4b8daf5b5cdffcdfd73140;hb=a2cea16954ab9634b10a3d6358a3c5ebad591538;hp=15ad83ed85f60dd916ff528c6fb27a7afd497af0;hpb=37253656e3f1403b25c5f0fee6c9631140c4507a;p=friendica.git diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 15ad83ed85..5180a3ea2e 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -116,6 +116,10 @@ class Profile return; } + if (empty($pdata)) { + $pdata = ['uid' => 0, 'profile_uid' => 0, 'is-default' => false,'name' => $nickname]; + } + // fetch user tags if this isn't the default profile if (!$pdata['is-default']) {