Skip to content

Commit ac8a286

Browse files
committed
Update modX.php
Make array checking strict
1 parent 8edfde0 commit ac8a286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Revolution/modX.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public static function toQueryString(array $parameters = [], $numPrefix = '', $a
409409
*/
410410
public function paramValueIsTrue(array $params, $key, bool $returnBoolAsString = false)
411411
{
412-
if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1])) {
412+
if (isset($params[$key]) && in_array($params[$key], ['true', true, '1', 1], true)) {
413413
return $returnBoolAsString ? 'true' : true ;
414414
}
415415
return $returnBoolAsString ? 'false' : false ;

0 commit comments

Comments
 (0)