diff options
| author | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-28 15:33:01 +0200 |
|---|---|---|
| committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-29 00:58:02 +0200 |
| commit | 62ed77ab25f8f2cf5103caf572079ebc2b50f6bc (patch) | |
| tree | 8bd2e4b7b32a3389ca4e2e4ccbaee1168a2fed67 /includes/pages/admin_groups.php | |
| parent | bb45d460987032bedca6870df4386cfc4c01800f (diff) | |
Groups: Fix Naming and IDs
Diffstat (limited to 'includes/pages/admin_groups.php')
| -rw-r--r-- | includes/pages/admin_groups.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_groups.php b/includes/pages/admin_groups.php index 6ba2ceaf..5127041d 100644 --- a/includes/pages/admin_groups.php +++ b/includes/pages/admin_groups.php @@ -57,7 +57,7 @@ function admin_groups() } else { switch ($request->input('action')) { case 'edit': - if ($request->has('id') && preg_match('/^-\d{1,11}$/', $request->input('id'))) { + if ($request->has('id') && preg_match('/^\d{1,11}$/', $request->input('id'))) { $group_id = $request->input('id'); } else { return error('Incomplete call, missing Groups ID.', true); @@ -113,7 +113,7 @@ function admin_groups() case 'save': if ( $request->has('id') - && preg_match('/^-\d{1,11}$/', $request->input('id')) + && preg_match('/^\d{1,11}$/', $request->input('id')) && $request->hasPostData('submit') ) { $group_id = $request->input('id'); |
