diff --git a/nconnector.php b/nconnector.php index abf0b6f..b7d50a1 100755 --- a/nconnector.php +++ b/nconnector.php @@ -51,8 +51,8 @@ while ($user = $doldb->result->fetch_assoc()) $oc_group_user_query = "INSERT INTO oc_group_user(uid, gid) VALUES ('" . $user["login"] . "','" . $gid . "')"; - $oc_preferences_query_quota = "INSERT INTO oc_preferences('userid', 'appid', 'configkey', 'configvalue') VALUES('" . $user["login"] . "', 'files', 'quota', '10 GB')"; - $oc_preferences_query_email = "INSERT INTO oc_preferences('userid', 'appid', 'configkey', 'configvalue') VALUES('" . $user["login"] . "', ''settings', 'email', '" . $user["email"] . "')"; + $oc_preferences_query_quota = "INSERT INTO oc_preferences(userid, appid, configkey, configvalue) VALUES ('" . $user["login"] . "', 'files', 'quota', '10 GB')"; + $oc_preferences_query_email = "INSERT INTO oc_preferences(userid, appid, configkey, configvalue) VALUES ('" . $user["login"] . "', 'settings', 'email', '" . $user["email"] . "')"; echo $account_data . EOL . $oc_account_query . EOL . $oc_users_query .EOL . $oc_group_user_query . EOL . $oc_preferences_query_quota . EOL . $oc_preferences_query_email . EOL; if (!$ncdb->query($oc_account_query))