File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ public function createCardFromUser(IUser $user): ?VCard {
4747 $ userProperties = $ this ->accountManager ->getAccount ($ user )->getProperties ();
4848
4949 $ uid = $ user ->getUID ();
50- $ name = $ user ->getBackendClassName ();
50+ $ backendClassName = $ user ->getBackendClassName ();
5151 $ cloudId = $ user ->getCloudId ();
5252 $ image = $ this ->getAvatarImage ($ user );
5353
5454 $ vCard = new VCard ();
5555 $ vCard ->VERSION = '3.0 ' ;
56- $ vCard ->UID = "$ name : $ uid " ;
56+ $ vCard ->UID = "$ backendClassName : $ uid " ;
5757 $ vCard ->add (new Text ($ vCard , 'X-NEXTCLOUD-UID ' , $ uid ));
5858
5959 $ publish = false ;
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ public function syncInstance(\Closure $progressCallback = null) {
329329 $ allCards = $ this ->backend ->getCards ($ systemAddressBook ['id ' ]);
330330 foreach ($ allCards as $ card ) {
331331 $ vCard = Reader::read ($ card ['carddata ' ]);
332- $ uid = $ vCard ->{'X-NEXTCLOUD-UID ' }->getValue ();
332+ $ uid = $ vCard ->{'X-NEXTCLOUD-UID ' }->getValue () ?? $ vCard ->{ ' UID ' }-> getValue () ;
333333 // load backend and see if user exists
334334 if (!$ this ->userManager ->userExists ($ uid )) {
335335 $ this ->deleteUser ($ card ['uri ' ]);
You can’t perform that action at this time.
0 commit comments