From 46fa1298e725f93d5599d1aedb98bea1a67db2c0 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 20 Apr 2022 16:08:37 -0400 Subject: [PATCH] explicitly parse integer from string --- lib/Auth/Source/FSFDrupalAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Auth/Source/FSFDrupalAuth.php b/lib/Auth/Source/FSFDrupalAuth.php index 58723bf..515a876 100644 --- a/lib/Auth/Source/FSFDrupalAuth.php +++ b/lib/Auth/Source/FSFDrupalAuth.php @@ -312,7 +312,7 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase $result = $this->query_db($query_name, $parameters); foreach ($result[0] as $key => $value) { - if ($value < $amount) { + if (intval($value) < $amount) { continue; } elseif ($attributes['is_member'] == ['true']) { return true; -- 2.25.1