From 0755668e9f23f9cfce695df4e36c6f38058005bf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 23 Oct 2020 20:03:48 +0200 Subject: [PATCH] fix PHP Warning "continue" targeting switch, though a single continue/break works too --- addressbook/inc/class.addressbook_vcal.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.addressbook_vcal.inc.php b/addressbook/inc/class.addressbook_vcal.inc.php index f6bbad21d3..d0e6db1894 100644 --- a/addressbook/inc/class.addressbook_vcal.inc.php +++ b/addressbook/inc/class.addressbook_vcal.inc.php @@ -369,7 +369,7 @@ class addressbook_vcal extends addressbook_bo } // Horde::logMessage("vCalAddressbook $vcardField omitted due to maximum size $size", // __FILE__, __LINE__, PEAR_LOG_WARNING); - continue; + continue 2; } $values = array(); } @@ -425,7 +425,7 @@ class addressbook_vcal extends addressbook_bo } // Horde::logMessage("vCalAddressbook $vcardField omitted due to maximum size $size", // __FILE__, __LINE__, PEAR_LOG_WARNING); - continue; + continue 2; } // truncate the value to size $cursize = strlen(implode('', $values)); @@ -1003,7 +1003,7 @@ class addressbook_vcal extends addressbook_bo if ($vcardValues[$vcardKey]['params']['ENCODING'] === 'SMIME') { // ignore re-importing of S/Mime pubkey for now, as we might be called for a new contact - continue; + continue 2; } break;