forked from extern/egroupware
Remove ! not allowing insert into accounts
This commit is contained in:
parent
585be61e0e
commit
d0f8db76d5
@ -97,12 +97,12 @@
|
||||
. " values('admin','run',".$account[1]["account_id"].",'u',1)";
|
||||
$phpgw_setup->db->query($sql ,__LINE__,__FILE__);
|
||||
|
||||
$phpgw_setup->db->query("SELECT account_id FROM accounts WHERE account_id=" . $account[1]["account_id"]
|
||||
. " AND account_lid='" . $account[1]["account_lid"] . "'");
|
||||
if(!$phpgw_setup->db->num_rows() && !$account[1]["account_lid"]) {
|
||||
$phpgw_setup->db->query("SELECT account_id FROM accounts WHERE account_id=" . $account[1]["account_id"]
|
||||
. " AND account_lid='" . $account[1]["account_lid"] . "'");
|
||||
if(!$phpgw_setup->db->num_rows() && $account[1]["account_lid"]) {
|
||||
$phpgw_setup->db->query("insert into accounts (account_id,account_lid,account_pwd,"
|
||||
. "account_groups,account_status,account_lastpwd_change) values (" . $account[1]["account_id"] . ",'"
|
||||
. $account[1]["account_lid"] . "','x',',1:0,','A',".time().")",__LINE__,__FILE__);
|
||||
. "account_groups,account_status,account_lastpwd_change) values (" . $account[1]["account_id"] . ",'"
|
||||
. $account[1]["account_lid"] . "','x',',1:0,','A',".time().")",__LINE__,__FILE__);
|
||||
}
|
||||
}
|
||||
$setup_complete = True;
|
||||
|
Loading…
Reference in New Issue
Block a user