From 1c08e5d9cf6e17839f5dd124fc9994869bbe0e62 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Thu, 2 Jan 2020 19:43:08 +0100 Subject: [PATCH] PHP/v7.3 * fixed warnings when migrating to php v7.3 * https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core.continue-targeting-switch --- includes/community.class.php | 2 +- includes/utilities.php | 4 ++-- pages/genericPage.class.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/community.class.php b/includes/community.class.php index 3ca0d368..72955995 100644 --- a/includes/community.class.php +++ b/includes/community.class.php @@ -125,7 +125,7 @@ class CommunityContent case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break; case TYPE_SOUND: $obj = new SoundList($cnd); break; case TYPE_ICON: $obj = new IconList($cnd); break; - default: continue; + default: continue 2; } foreach ($obj->iterate() as $id => $__) diff --git a/includes/utilities.php b/includes/utilities.php index 44aaa0b2..12283170 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -1029,7 +1029,7 @@ class Util break; } else - continue; + continue 3; } case CND_ZONEID: // 4 case CND_AREAID: // 23 @@ -1084,7 +1084,7 @@ class Util else if ($c['ConditionValue1'] == 67) // Horde $c['ConditionValue1'] = 2; else - continue; + continue 2; } $res = [$c['NegativeCondition'] ? -$c['ConditionTypeOrReference'] : $c['ConditionTypeOrReference']]; diff --git a/pages/genericPage.class.php b/pages/genericPage.class.php index b772b679..d09243d1 100644 --- a/pages/genericPage.class.php +++ b/pages/genericPage.class.php @@ -854,7 +854,7 @@ class GenericPage case TYPE_USER: $obj = new UserList($cnd); break; case TYPE_EMOTE: $obj = new EmoteList($cnd); break; case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break; - default: continue; + default: continue 2; } $this->extendGlobalData($obj->getJSGlobals(GLOBALINFO_SELF));