summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/NC15/SetVcardDatabaseUID.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Repair/NC15/SetVcardDatabaseUID.php b/lib/private/Repair/NC15/SetVcardDatabaseUID.php
index ccf6c47cbc8..210fc0a862c 100644
--- a/lib/private/Repair/NC15/SetVcardDatabaseUID.php
+++ b/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();