From 6d9db0b0d2928d864c9e1541f255b640ec295d6f Mon Sep 17 00:00:00 2001 From: paulr Date: Mon, 7 Nov 2011 02:13:07 +1100 Subject: [PATCH] fixing how group gets returned --- gwvplib/gwvpuseradmin.php | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/gwvplib/gwvpuseradmin.php b/gwvplib/gwvpuseradmin.php index 19f4c71..1d3e83d 100644 --- a/gwvplib/gwvpuseradmin.php +++ b/gwvplib/gwvpuseradmin.php @@ -147,10 +147,6 @@ function gwvp_AddGroupPage() $gdesc = $_REQUEST["groupdesc"]; $owner = $_REQUEST["groupowner"]; - //gwvp_getGroup($gid = null, $gname = null) - if($isadmin) error_log("admin true"); - else error_log("admin not true"); - if(gwvp_getGroup(null, $gname)) { $_SESSION["sendback_owner"] = "groups"; $_SESSION["sendback"] = true; @@ -159,7 +155,7 @@ function gwvp_AddGroupPage() $data["groupdesc"] = $gdesc; $data["groupowner"] = $owner; if($isadmin) $data["admingroup"] = "checked"; - //else $data["admingroup"] = ""; + else $data["admingroup"] = ""; $data["groupnamestar"] = true; gwvp_SendMessage("error", "Group name in use"); -- 1.7.0.4