Fix SetVcardDatabaseUID when using postgresql
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
5e84824839
commit
e1a49a223b
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue