Skip to content

Commit

Permalink
Changes by review
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
Signed-off-by: Mikhail Kotelnikov <fox@woland.me>
  • Loading branch information
wolandtel and ChristophWurst authored Nov 18, 2024
1 parent de3a340 commit 841439f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function buildIndex($offset, $stopAt) {
foreach ($social_cards as $contact) {
$offset = $contact['id'];
$cardData = $contact['carddata'];
if (is_resource($cardData) && (get_resource_type($cardData) == 'stream')) {
if (is_resource($cardData) && (get_resource_type($cardData) === 'stream')) {
$cardData = stream_get_contents($cardData);
}
$this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $cardData);
Expand Down

0 comments on commit 841439f

Please sign in to comment.