From: paulr Date: Sun, 6 Nov 2011 15:13:07 +0000 (+1100) Subject: fixing how group gets returned X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=6d9db0b0d2928d864c9e1541f255b640ec295d6f;p=gwvp.git fixing how group gets returned --- 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");