From ac8a2868a4517827df8958b6b27c26d0ac83d667 Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Thu, 22 May 2025 00:12:42 -0400 Subject: [PATCH] Update modX.php Make array checking strict --- core/src/Revolution/modX.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/Revolution/modX.php b/core/src/Revolution/modX.php index 086ffd0448..1030d8b906 100644 --- a/core/src/Revolution/modX.php +++ b/core/src/Revolution/modX.php @@ -409,7 +409,7 @@ public static function toQueryString(array $parameters = [], $numPrefix = '', $a */ public function paramValueIsTrue(array $params, $key, bool $returnBoolAsString = false) { - if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1])) { + if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1], true)) { return $returnBoolAsString ? 'true' : true ; } return $returnBoolAsString ? 'false' : false ;