Преглед изворни кода

Fix SetVcardDatabaseUID when using postgresql

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v15.0.0beta2
Robin Appelman пре 5 година
родитељ
комит
e1a49a223b
No account linked to committer's email address
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5
    1
      lib/private/Repair/NC15/SetVcardDatabaseUID.php

+ 5
- 1
lib/private/Repair/NC15/SetVcardDatabaseUID.php Прегледај датотеку

@@ -112,7 +112,11 @@ class SetVcardDatabaseUID implements IRepairStep {
$count = 0;
foreach ($entries as $entry) {
$count++;
$uid = $this->getUID($entry['carddata']);
$cardData = $entry['carddata'];
if (is_resource($cardData)) {
$cardData = stream_get_contents($cardData);
}
$uid = $this->getUID($cardData);
$this->update($entry['id'], $uid);
}
$this->connection->commit();

Loading…
Откажи
Сачувај