fixing how group gets returned
authorpaulr <me@pjr.cc>
Sun, 6 Nov 2011 15:13:07 +0000 (02:13 +1100)
committerpaulr <me@pjr.cc>
Sun, 6 Nov 2011 15:13:07 +0000 (02:13 +1100)
gwvplib/gwvpuseradmin.php

index 19f4c71..1d3e83d 100644 (file)
@@ -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");