function get_group_id($var_1 = null, $var_2 = null, $var_3 = null) { global $_CB_database; if (checkJversion() == 2) { $gname = $var_1 ? $var_1 : $var_2; $query = 'SELECT ' . $_CB_database->NameQuote('id') . "\n FROM " . $_CB_database->NameQuote('#__usergroups') . "\n WHERE " . $_CB_database->NameQuote('title') . " = " . $_CB_database->Quote($gname); $_CB_database->setQuery($query); $return = $_CB_database->loadResult(); } else { if (!$var_2) { $var_2 = 'ARO'; } $return = $this->_acl->get_group_id($var_1, $var_2, $var_3); } return $return; }