mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
SoundDetailPage/Fixup
* fix exception when assigning WorldState conditions to the zones tab
This commit is contained in:
@@ -212,7 +212,7 @@ class SoundBaseResponse extends TemplateResponse implements ICache
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($worldStates = array_filter($zoneIds, function ($x) { return $x['worldStateId'] > 0; }))
|
if ($worldStates = array_filter($zoneIds, fn($x) => $x['worldStateId'] > 0))
|
||||||
{
|
{
|
||||||
$tabData['extraCols'] = ['$Listview.extraCols.condition'];
|
$tabData['extraCols'] = ['$Listview.extraCols.condition'];
|
||||||
|
|
||||||
@@ -222,7 +222,7 @@ class SoundBaseResponse extends TemplateResponse implements ICache
|
|||||||
Conditions::extendListviewRow($zoneData[$state['id']], Conditions::SRC_NONE, $this->typeId, [Conditions::WORLD_STATE, $state['worldStateId'], $state['worldStateValue']]);
|
Conditions::extendListviewRow($zoneData[$state['id']], Conditions::SRC_NONE, $this->typeId, [Conditions::WORLD_STATE, $state['worldStateId'], $state['worldStateValue']]);
|
||||||
else
|
else
|
||||||
foreach ($zoneData as &$d)
|
foreach ($zoneData as &$d)
|
||||||
if (in_array($state['id'], $d['subzones']))
|
if (in_array($state['id'], $d['subzones'] ?? []))
|
||||||
Conditions::extendListviewRow($d, Conditions::SRC_NONE, $this->typeId, [Conditions::WORLD_STATE, $state['worldStateId'], $state['worldStateValue']]);
|
Conditions::extendListviewRow($d, Conditions::SRC_NONE, $this->typeId, [Conditions::WORLD_STATE, $state['worldStateId'], $state['worldStateValue']]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user