]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: account-type"
authorMichael <heluecht@pirati.ca>
Sun, 4 Jul 2021 21:26:08 +0000 (21:26 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Jul 2021 21:26:08 +0000 (21:26 +0000)
src/Model/User.php

index bc3536acf16e3cc6e30403b766d548fc4ff7de00..5d349ce69e77a72be5f57a49033cb4d39ee820b3 100644 (file)
@@ -146,6 +146,15 @@ class User
                $system['sprvkey'] = $system['uprvkey'] = $system['prvkey'];
                $system['spubkey'] = $system['upubkey'] = $system['pubkey'];
                $system['nickname'] = $system['nick'];
+               $system['page-flags'] = User::PAGE_FLAGS_SOAPBOX;
+               $system['account-type'] = $system['contact-type'];
+               $system['guid'] = '';
+               $system['nickname'] = $system['nick'];
+               $system['pubkey'] = $system['pubkey'];
+               $system['locality'] = '';
+               $system['region'] = '';
+               $system['country-name'] = '';
+               $system['net-publish'] = false;
 
                // Ensure that the user contains data
                $user = DBA::selectFirst('user', ['prvkey'], ['uid' => 0]);