From 075cd56909535df2003b5bcdd6abdb14c1ded947 Mon Sep 17 00:00:00 2001 From: Jacob G Date: Thu, 18 Jul 2024 01:17:23 +0100 Subject: [PATCH] add fallback for to ctype_digit (closes #189) --- src/SpecialConfirmAccounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpecialConfirmAccounts.php b/src/SpecialConfirmAccounts.php index b574d64..4793e60 100755 --- a/src/SpecialConfirmAccounts.php +++ b/src/SpecialConfirmAccounts.php @@ -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);