fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362)
This commit is contained in:
parent
cd9da66363
commit
6ad2bbbce8
1 changed files with 2 additions and 2 deletions
|
@ -1923,10 +1923,10 @@
|
||||||
|
|
||||||
// First login ?
|
// First login ?
|
||||||
if (db_num_rows($result) == 0) {
|
if (db_num_rows($result) == 0) {
|
||||||
$query = "INSERT INTO ttrss_users
|
$query2 = "INSERT INTO ttrss_users
|
||||||
(login,access_level,last_login,created)
|
(login,access_level,last_login,created)
|
||||||
VALUES ('$login', 0, null, NOW())";
|
VALUES ('$login', 0, null, NOW())";
|
||||||
db_query($link, $query);
|
db_query($link, $query2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue