Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Invalid Code on UserGroups.class.php #120

@Oxymoron290

Description

@Oxymoron290

Lines 89 through 104
Function: AddGroup($groupname, $type)

Error: The field groupstype does not exist in the table TABLE-PREFIX_groups

        public static function AddGroup($groupname, $type)
        {
                $groupname = DB::escape($groupname);
                
                if($type != 'a' || $type != 'd')
                        $type = 'd';
                                        
                $query = "INSERT INTO " . TABLE_PREFIX . "groups (name, groupstype) VALUES ('$groupname', '$type')";
                
                $res = DB::query($sql);
                
                if(DB::errno() != 0)
                        return false;
                        
                return true;
        }

Suggested resolution: Remove function
Alternate solution: Remove class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions