From: Andrew Dolgov Date: Sun, 22 Jan 2006 06:53:49 +0000 (+0100) Subject: mysql complains about last_login being null, use NOW() (closes #35) X-Git-Tag: 1.1.3~57 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=69c0d7598042b3f3d3e75f1a1c1da6016e0d2d34;p=tt-rss.git mysql complains about last_login being null, use NOW() (closes #35) --- diff --git a/backend.php b/backend.php index 02074407..e5d93ee0 100644 --- a/backend.php +++ b/backend.php @@ -3585,8 +3585,9 @@ $tmp_user_pwd = make_password(8); $pwd_hash = 'SHA1:' . sha1($tmp_user_pwd); - db_query($link, "INSERT INTO ttrss_users (login,pwd_hash,access_level) - VALUES ('$login', '$pwd_hash', 0)"); + db_query($link, "INSERT INTO ttrss_users + (login,pwd_hash,access_level,last_login) + VALUES ('$login', '$pwd_hash', 0, NOW())"); $result = db_query($link, "SELECT id FROM ttrss_users WHERE