Skip to content

Revert "Fix sync errors for card creation with the same uri from different sources"#36131

Merged
nickvergessen merged 1 commit intomasterfrom
revert/32057
Jan 13, 2023
Merged

Revert "Fix sync errors for card creation with the same uri from different sources"#36131
nickvergessen merged 1 commit intomasterfrom
revert/32057

Conversation

@Pytal
Copy link
Member

@Pytal Pytal commented Jan 13, 2023

Revert #32057

As discussed in #36110

…ferent backends"

This reverts commit ddcee3d.

Signed-off-by: Christopher Ng <chrng8@gmail.com>
foreach ($allCards as $card) {
$vCard = Reader::read($card['carddata']);
$uid = isset($vCard->{'X-NEXTCLOUD-UID'}) ? $vCard->{'X-NEXTCLOUD-UID'}->getValue() : $vCard->UID->getValue();
$uid = $vCard->UID->getValue();

Check notice

Code scanning / Psalm

PossiblyNullReference

Cannot call method getValue on possibly null value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants