/**
* Description
*
* @param type $var description
* @return type description
*/
function loadGroups($id, $item, $table, $field='groupid') {
global $db;
$this->table = $db->prefix($table);
$this->field = $field;
$this->item = $item;
if ($result = $db->query("SELECT ".$this->field." FROM ".$this->table." WHERE ".$this->item."='$id'")) {
list($groups) = $db->fetch_row($result);
unset($this->groups[$this->groupname]);
$this->addGroups($groups, 1);
return(TRUE);
}
return(FALSE);
}
6eit viss ir ok?