[Pkg-owncloud-commits] [php-sabre-vobject] 15/43: Add warning when repaired

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 140520b8cd40744c7d6928cfa8604c0f2a5dade8
Author: Jason Pirkey <jason at tave.com>
Date:   Tue Dec 23 15:40:10 2014 -0500

    Add warning when repaired
---
 lib/Component/VCard.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/Component/VCard.php b/lib/Component/VCard.php
index 464897c..68ce2ab 100644
--- a/lib/Component/VCard.php
+++ b/lib/Component/VCard.php
@@ -232,7 +232,11 @@ class VCard extends VObject\Document {
         $uid = $this->select('UID');
         if (($options & self::REPAIR) && count($uid) === 0) {
             $this->UID = VObject\UUIDUtil::getUUID();
-            $repaired = true;
+            $warnings[] = array(
+                'level' => 1,
+                'message' => 'The UID property must appear in the VCARD component exactly 1 time',
+                'node' => $this,
+            );
         }
         $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