[Pkg-owncloud-commits] [php-sabredav] 02/11: Broken while loop :/

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:15:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch 2.1
in repository php-sabredav.

commit da8086e6b057bc9ce3f0a3b82f731154fe894f7f
Author: Evert Pot <me at evertpot.com>
Date:   Tue Jul 14 12:51:45 2015 -0400

    Broken while loop :/
    
    Fixes #687
---
 bin/migrateto21.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/bin/migrateto21.php b/bin/migrateto21.php
index c0cef52..701bcf2 100755
--- a/bin/migrateto21.php
+++ b/bin/migrateto21.php
@@ -7,7 +7,7 @@ if ($argc<2) {
 
     echo <<<HELLO
 
-This script help you migrate from a pre-2.1 database to 2.1 and later
+This script help you migrate from a pre-2.1 database to 2.1.
 
 Changes:
   The 'calendarobjects' table will be upgraded.
@@ -118,8 +118,6 @@ if ($addUid) {
 
     while($row = $result->fetch(\PDO::FETCH_ASSOC)) {
 
-        yoyo:
-
         try {
             $vobj = \Sabre\VObject\Reader::read($row['calendardata']);
         } catch (\Exception $e) {
@@ -130,7 +128,7 @@ if ($addUid) {
         $item = $vobj->getBaseComponent();
         if (!isset($item->UID)) {
             echo "Warning! Item with id $item[id] does NOT have a UID property and this is required.\n";
-            goto yoyo;
+            continue;
         }
         $uid = (string)$item->UID;
         $stmt->execute([$uid, $row['id']]);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list