mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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
This commit is contained in:
@@ -125,7 +125,7 @@ class CommunityContent
|
|||||||
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
|
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
|
||||||
case TYPE_SOUND: $obj = new SoundList($cnd); break;
|
case TYPE_SOUND: $obj = new SoundList($cnd); break;
|
||||||
case TYPE_ICON: $obj = new IconList($cnd); break;
|
case TYPE_ICON: $obj = new IconList($cnd); break;
|
||||||
default: continue;
|
default: continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($obj->iterate() as $id => $__)
|
foreach ($obj->iterate() as $id => $__)
|
||||||
|
|||||||
@@ -1029,7 +1029,7 @@ class Util
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
continue;
|
continue 3;
|
||||||
}
|
}
|
||||||
case CND_ZONEID: // 4
|
case CND_ZONEID: // 4
|
||||||
case CND_AREAID: // 23
|
case CND_AREAID: // 23
|
||||||
@@ -1084,7 +1084,7 @@ class Util
|
|||||||
else if ($c['ConditionValue1'] == 67) // Horde
|
else if ($c['ConditionValue1'] == 67) // Horde
|
||||||
$c['ConditionValue1'] = 2;
|
$c['ConditionValue1'] = 2;
|
||||||
else
|
else
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$res = [$c['NegativeCondition'] ? -$c['ConditionTypeOrReference'] : $c['ConditionTypeOrReference']];
|
$res = [$c['NegativeCondition'] ? -$c['ConditionTypeOrReference'] : $c['ConditionTypeOrReference']];
|
||||||
|
|||||||
@@ -854,7 +854,7 @@ class GenericPage
|
|||||||
case TYPE_USER: $obj = new UserList($cnd); break;
|
case TYPE_USER: $obj = new UserList($cnd); break;
|
||||||
case TYPE_EMOTE: $obj = new EmoteList($cnd); break;
|
case TYPE_EMOTE: $obj = new EmoteList($cnd); break;
|
||||||
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
|
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
|
||||||
default: continue;
|
default: continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->extendGlobalData($obj->getJSGlobals(GLOBALINFO_SELF));
|
$this->extendGlobalData($obj->getJSGlobals(GLOBALINFO_SELF));
|
||||||
|
|||||||
Reference in New Issue
Block a user