]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix SQL query variable being overridden when using AUTO_CREATE_USER (closes #362)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Aug 2011 05:54:15 +0000 (09:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Aug 2011 05:54:15 +0000 (09:54 +0400)
functions.php

index f17fe4484ea998fe3ca84fe21b01a9cd331df0ec..73898f6978759c122192969c67d4e31030f16252 100644 (file)
 
                                        // 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);
                                        }
                                }