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

Description
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