mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:05:55 +00:00
don't try to pass string literal NOW() to ORM as a timestamp
This commit is contained in:
@@ -475,7 +475,7 @@ class Feeds extends Handler_Protected {
|
||||
/* bump login timestamp if needed */
|
||||
if (time() - $_SESSION["last_login_update"] > 3600) {
|
||||
$user = ORM::for_table('ttrss_users')->find_one($_SESSION["uid"]);
|
||||
$user->last_login = 'NOW()';
|
||||
$user->last_login = Db::NOW();
|
||||
$user->save();
|
||||
|
||||
$_SESSION["last_login_update"] = time();
|
||||
|
||||
Reference in New Issue
Block a user