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

Invalid Code on UserGroups.class.php #120

Open
Oxymoron290 opened this issue Nov 3, 2013 · 1 comment
Open

Invalid Code on UserGroups.class.php #120

Oxymoron290 opened this issue Nov 3, 2013 · 1 comment

Comments

@Oxymoron290
Copy link

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

@Oxymoron290
Copy link
Author

CLEAR!
images

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant