Skip to content

Commit 3a6e8fe

Browse files
committed
Fix autologin: Failed because of an invalid SQL statement
Introduced in ba544f9
1 parent bfc9f76 commit 3a6e8fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/functions_config.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function serendipity_issueAutologin($user) {
449449
$okeyCast = serendipity_db_cast('okey', 'unsigned');
450450
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options
451451
WHERE name = 'autologin_" . serendipity_db_escape_string($user) . "'
452-
OR (name LIKE 'autologin_%' AND $okeyCast < {$threeWeeksAgo}");
452+
OR (name LIKE 'autologin_%' AND $okeyCast < {$threeWeeksAgo})");
453453

454454
// Issue new autologin cookie
455455
serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}options (name, value, okey) VALUES ('autologin_" . serendipity_db_escape_string($user) . "', '" . $rnd . "', '" . time() . "')");

0 commit comments

Comments
 (0)