diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-30 14:59:27 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-30 15:35:12 +0200 |
commit | 96f1d9fd541d0c5ef78151f8c69a89c41684b67a (patch) | |
tree | e39f5afde165a55f49857d064675fa1876a66808 /includes/sys_page.php | |
parent | a473a56f1dbf568dc66cd6fcffe6b638308c542e (diff) |
Bugfixes
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r-- | includes/sys_page.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php index df57d08a..33ec18b9 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.php @@ -170,7 +170,11 @@ function strip_request_item($name, $default_value = null) function test_request_int($name) { $input = request()->input($name); - return preg_match('/^\d*$/', $input); + if (is_null($input)) { + return false; + } + + return preg_match('/^\d+$/', $input); } /** |