From: Andrew Dolgov Date: Tue, 23 Aug 2011 05:54:15 +0000 (+0400) Subject: fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362) X-Git-Tag: 1.5.6~48 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6ad2bbbce8ad3bba95a5e34c9fb5653bdc70593a;p=tt-rss.git fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362) --- 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); } }