Fix syntax error (#312)

Fix wrong bracket order revealed by PHP 8
This commit is contained in:
Giacomo Pozzoni
2021-10-27 19:52:15 +02:00
committed by GitHub
parent 60e3f62504
commit 5781dfb69e

View File

@@ -269,7 +269,7 @@ class NpcPage extends GenericPage
if ($tmpRes) if ($tmpRes)
{ {
$stats['resistance'] = Lang::npc('resistances').Lang::main('colon'); $stats['resistance'] = Lang::npc('resistances').Lang::main('colon');
if (count($tmpRes > 3)) if (count($tmpRes) > 3)
$stats['resistance'] .= implode(' ', array_slice($tmpRes, 0, 3)).'[br]'.implode(' ', array_slice($tmpRes, 3)); $stats['resistance'] .= implode(' ', array_slice($tmpRes, 0, 3)).'[br]'.implode(' ', array_slice($tmpRes, 3));
else else
$stats['resistance'] .= implode(' ', $tmpRes); $stats['resistance'] .= implode(' ', $tmpRes);