Quellcode durchsuchen

Fix SetVcardDatabaseUID when using postgresql

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v15.0.0beta2
Robin Appelman vor 5 Jahren
Ursprung
Commit
e1a49a223b
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5
    1
      lib/private/Repair/NC15/SetVcardDatabaseUID.php

+ 5
- 1
lib/private/Repair/NC15/SetVcardDatabaseUID.php Datei anzeigen

@@ -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();

Laden…
Abbrechen
Speichern