Skip to content

Commit

Permalink
add fallback for to ctype_digit (closes #189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-g committed Jul 18, 2024
1 parent c7f995e commit 075cd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpecialConfirmAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function execute( $par ) {
return $this->searchByUsername($request->getText('username'), $request, $output);
} else if (isset(statuses[$par])) {
return $this->listRequestsByStatus($par, $output);
} else if (ctype_digit($par)) {
} else if (ctype_digit($par ?? '')) {
return requestPage($par, 'admin', $this, $request->getSession());
} else if (empty($par)) {
return $this->defaultPage($output);
Expand Down

0 comments on commit 075cd56

Please sign in to comment.