projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic version fixes in dbinstall.php.
[timetracker.git]
/
WEB-INF
/
lib
/
ttRegistrator.class.php
diff --git
a/WEB-INF/lib/ttRegistrator.class.php
b/WEB-INF/lib/ttRegistrator.class.php
index
48f4b0a
..
b3551da
100644
(file)
--- a/
WEB-INF/lib/ttRegistrator.class.php
+++ b/
WEB-INF/lib/ttRegistrator.class.php
@@
-159,9
+159,9
@@
class ttRegistrator {
$email = $mdb2->quote($this->email);
$created = 'now()';
$created_ip = $mdb2->quote($_SERVER['REMOTE_ADDR']);
$email = $mdb2->quote($this->email);
$created = 'now()';
$created_ip = $mdb2->quote($_SERVER['REMOTE_ADDR']);
- $values = "values($login, $password, $name, $this->group_id, $this->role_id, $email, $created, $created_ip)";
+ $values = "values($login, $password, $name, $this->group_id, $this->
group_id, $this->
role_id, $email, $created, $created_ip)";
- $sql = 'insert into tt_users (login, password, name, group_id, role_id, email, created, created_ip) '.$values;
+ $sql = 'insert into tt_users (login, password, name, group_id,
org_id,
role_id, email, created, created_ip) '.$values;
$affected = $mdb2->exec($sql);
if (!is_a($affected, 'PEAR_Error')) {
$user_id = $mdb2->lastInsertID('tt_users', 'id');
$affected = $mdb2->exec($sql);
if (!is_a($affected, 'PEAR_Error')) {
$user_id = $mdb2->lastInsertID('tt_users', 'id');