From 6ad2bbbce8ad3bba95a5e34c9fb5653bdc70593a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Aug 2011 09:54:15 +0400 Subject: [PATCH] fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362) --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index f17fe448..73898f69 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); } } -- 2.39.5