diff options
author | Andrew Dolgov <[email protected]> | 2011-08-23 09:54:15 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-08-23 09:54:15 +0400 |
commit | 6ad2bbbce8ad3bba95a5e34c9fb5653bdc70593a (patch) | |
tree | 9c3435f507b232e66486381654abd64e5719918b | |
parent | cd9da663630b6e12a1f4b0c82646e989410aed51 (diff) |
fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362)
-rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php index f17fe4484..73898f697 100644 --- a/functions.php +++ b/functions.php @@ -1923,10 +1923,10 @@ // First login ? if (db_num_rows($result) == 0) { - $query = "INSERT INTO ttrss_users + $query2 = "INSERT INTO ttrss_users (login,access_level,last_login,created) VALUES ('$login', 0, null, NOW())"; - db_query($link, $query); + db_query($link, $query2); } } |