Skip to content

Commit

Permalink
Swap is_int for ctype_digit because the IDs are strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Apr 17, 2024
1 parent 8213377 commit b8cdf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panels/Adminer/plugins/AdminerProcessWireLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function selectVal(&$val, $link, $field, $original) {
if($_GET['select'] == 'modules' && in_array($field['field'], ['class'])) {
$val = '<a href="'.$this->pwAdminUrl.'module/edit/?name='.$val.'" target="_parent">'.$val.'</a>';
}
elseif(is_int($original)) {
elseif(ctype_digit("$original")) {
if(in_array($_GET['select'], ['fieldgroups', 'modules'])) {
// intentionally blank
}
Expand Down

0 comments on commit b8cdf8c

Please sign in to comment.