only add accounts, which have a uid and a uidnumber

This commit is contained in:
Lars Kneschke 2000-11-20 20:20:19 +00:00
parent 642653d734
commit 4e42f06b0e

View File

@ -105,6 +105,8 @@
} else {
$np = $permissions_string;
}
// do some checks before we try to import the data
if (!empty($account[1]["account_id"]) && !empty($account[1]["account_lid"]))
$db->query("insert into accounts (account_id,account_lid,account_pwd,account_permissions,"
. "account_groups,account_status) values ('" . $account[1]["account_id"] . "','"
. $account[1]["account_lid"] . "','x','$np',',1:0,','A')",__LINE__,__FILE__);