[Pkg-owncloud-commits] [php-sabre-vobject] 14/43: Repair of vCard UID when missing
David Prévot
taffit at moszumanska.debian.org
Sat Jan 10 14:20:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 747fbc087e78483a54bc2af1a532be70da7474f4
Author: Jason Pirkey <jason at tave.com>
Date: Tue Dec 23 15:21:19 2014 -0500
Repair of vCard UID when missing
---
lib/Component/VCard.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/Component/VCard.php b/lib/Component/VCard.php
index 632ddc3..464897c 100644
--- a/lib/Component/VCard.php
+++ b/lib/Component/VCard.php
@@ -229,6 +229,11 @@ class VCard extends VObject\Document {
}
}
+ $uid = $this->select('UID');
+ if (($options & self::REPAIR) && count($uid) === 0) {
+ $this->UID = VObject\UUIDUtil::getUUID();
+ $repaired = true;
+ }
$fn = $this->select('FN');
if (count($fn)!==1) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list