[Pkg-owncloud-commits] [php-sabre-vobject] 40/65: sort EXDATE values before adding it to $significantChangeHash probably related to #126

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:57:17 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 af318013bcdbc7d22ae0cce862327395ad0c6a63
Author: Armin Hackmann <armin at fruux.com>
Date:   Fri Jan 23 10:37:20 2015 +0100

    sort EXDATE values before adding it to $significantChangeHash
    probably related to #126
---
 lib/ITip/Broker.php | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/ITip/Broker.php b/lib/ITip/Broker.php
index aefe9fb..5214426 100644
--- a/lib/ITip/Broker.php
+++ b/lib/ITip/Broker.php
@@ -912,8 +912,15 @@ class Broker {
 
             foreach($this->significantChangeProperties as $prop) {
                 if (isset($vevent->$prop)) {
+                    $propertyValues = $vevent->select($prop);
+                    if ($prop === 'EXDATE') {
+                        usort($propertyValues, function($a, $b) {
+                            return strcmp($a->getValue(), $b->getValue());
+                        });
+                    }
+
                     $significantChangeHash.=$prop.':';
-                    foreach($vevent->select($prop) as $val) {
+                    foreach($propertyValues as $val) {
                         $significantChangeHash.= $val->getValue().';';
                     }
                 }

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