fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362)

This commit is contained in:
Andrew Dolgov 2011-08-23 09:54:15 +04:00
parent cd9da66363
commit 6ad2bbbce8

View file

@ -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);
} }
} }