From 5781dfb69e6701a38f20460776ea0c8245f58407 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Wed, 27 Oct 2021 19:52:15 +0200 Subject: [PATCH] Fix syntax error (#312) Fix wrong bracket order revealed by PHP 8 --- pages/npc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/npc.php b/pages/npc.php index 0c4ab888..910632da 100644 --- a/pages/npc.php +++ b/pages/npc.php @@ -269,7 +269,7 @@ class NpcPage extends GenericPage if ($tmpRes) { $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)); else $stats['resistance'] .= implode(' ', $tmpRes);