From b8cdf8c49a75136df1fa34d0acc15c9e92a2cade Mon Sep 17 00:00:00 2001 From: Adrian Jones Date: Tue, 16 Apr 2024 20:01:28 -0700 Subject: [PATCH] Swap `is_int` for `ctype_digit` because the IDs are strings. --- panels/Adminer/plugins/AdminerProcessWireLogin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/Adminer/plugins/AdminerProcessWireLogin.php b/panels/Adminer/plugins/AdminerProcessWireLogin.php index 67cd315..2c58a71 100644 --- a/panels/Adminer/plugins/AdminerProcessWireLogin.php +++ b/panels/Adminer/plugins/AdminerProcessWireLogin.php @@ -95,7 +95,7 @@ public function selectVal(&$val, $link, $field, $original) { if($_GET['select'] == 'modules' && in_array($field['field'], ['class'])) { $val = ''.$val.''; } - elseif(is_int($original)) { + elseif(ctype_digit("$original")) { if(in_array($_GET['select'], ['fieldgroups', 'modules'])) { // intentionally blank }