[Pkg-owncloud-commits] [php-sabre-vobject] 139/341: Fix a fix about <period />.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:42 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 48997db042eedb391f34f3b4a9bd5cca2ed71dc3
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Fri Jan 16 11:09:39 2015 +0100

    Fix a fix about <period />.
    
    Because we got a bug in the `Property/ICalendar/Period.php` file, we
    introduced a workaround in the XML parser, but it was wrong. This patch
    fix the original bug and remove the workaround.
---
 lib/Parser/XML.php                | 5 -----
 lib/Property/ICalendar/Period.php | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 3eac6f3..ce53f67 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -195,11 +195,6 @@ class XML extends Parser {
 
                                 break;
 
-                            case 'period':
-                                $propertyType  = 'period';
-                                $propertyValue = [implode('/', $xmlProperty['value'])];
-                                break;
-
                             default:
                                 $propertyType  = static::getTagName($xmlProperty['value'][0]['name']);
                                 $propertyValue = [$xmlProperty['value'][0]['value']];
diff --git a/lib/Property/ICalendar/Period.php b/lib/Property/ICalendar/Period.php
index 0d79941..d98939c 100644
--- a/lib/Property/ICalendar/Period.php
+++ b/lib/Property/ICalendar/Period.php
@@ -135,7 +135,7 @@ class Period extends Property {
      */
     function setXmlValue(array $value) {
 
-        parent::setJsonValue($value);
+        $this->setJsonValue($value);
 
     }
 

-- 
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