diff options
author | Bot <bot@myigel.name> | 2017-01-21 19:47:44 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-21 20:12:48 +0100 |
commit | 740026a9de6cba73c4e77aba78950d0a791b6b62 (patch) | |
tree | 187eb8fc8bccf731c095c00d6f8108ba0f4b8b06 /includes/controller/shifttypes_controller.php | |
parent | 915ce28feeb9104bf7854ccbd80caebb5dce4aaa (diff) |
Replaced [0-9] with \d
Diffstat (limited to 'includes/controller/shifttypes_controller.php')
-rw-r--r-- | includes/controller/shifttypes_controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/controller/shifttypes_controller.php b/includes/controller/shifttypes_controller.php index e6ba716f..9a470e29 100644 --- a/includes/controller/shifttypes_controller.php +++ b/includes/controller/shifttypes_controller.php @@ -79,7 +79,7 @@ function shifttype_edit_controller() error(_('Please enter a name.')); } - if (isset($_REQUEST['angeltype_id']) && preg_match('/^[0-9]+$/', $_REQUEST['angeltype_id'])) { + if (isset($_REQUEST['angeltype_id']) && preg_match('/^\d+$/', $_REQUEST['angeltype_id'])) { $angeltype_id = $_REQUEST['angeltype_id']; } else { $angeltype_id = null; |