Update groups.php
authorPatrick McGuire <insidenothing@gmail.com>
Thu, 21 May 2020 20:21:41 +0000 (16:21 -0400)
committerGitHub <noreply@github.com>
Thu, 21 May 2020 20:21:41 +0000 (16:21 -0400)
admin/groups.php

index 7622132..d2a58a0 100644 (file)
@@ -10,7 +10,7 @@ if ($_COOKIE['level'] == 'manager'){
   header('Location: manager_home.php');
 }
 include_once('header.php');
-if(isset($_POST['name']) && isset($_POST['email']) && isset($_POST['group_id']) ){
+if(isset($_POST['name'])){
   $name = $petition->real_escape_string($_POST['name']);
   $petition->query("insert into groups (name) values ('$name') ");
 }