Remove un-needed variable in acl add

This commit is contained in:
jengo 2001-02-21 03:02:20 +00:00
parent 548d841d1e
commit b733042a9a
2 changed files with 4 additions and 5 deletions

View File

@ -294,12 +294,11 @@ It should use the values in the $this->data
* These are the generic functions. Not specific to $this->account_id * * These are the generic functions. Not specific to $this->account_id *
\**************************************************************************/ \**************************************************************************/
function add_repository($app, $location, $account_id, $account_type, $rights) function add_repository($app, $location, $account_id, $rights)
{ {
$this->delete_repository($app, $location, $account_id); $this->delete_repository($app, $location, $account_id);
$sql = 'insert into phpgw_acl (acl_appname, acl_location, acl_account, acl_account_type, acl_rights)'; $sql = 'insert into phpgw_acl (acl_appname, acl_location, acl_account, acl_rights)';
$sql .= " values ('" . $app . "','" . $location . "','" . $account_id . "','" . $account_type $sql .= " values ('" . $app . "','" . $location . "','" . $account_id . "','" . $rights . "')";
. "','" . $rights . "')";
$this->db->query($sql ,__LINE__,__FILE__); $this->db->query($sql ,__LINE__,__FILE__);
return True; return True;
} }

View File

@ -813,7 +813,7 @@
if ($phpgw_info["flags"]["newsmode"]) if ($phpgw_info["flags"]["newsmode"])
{ {
$phpgw_info["user"]["preferences"]["email"]["mail_server_type"] = "nntp"; $phpgw_info["user"]["preferences"]["email"]["mail_server_type"] = "nntp";
} }
} }