From 9b73eab07c05544abe8b1ec5e5e5afa8fdaac8ab Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 May 2013 18:06:00 +0100 Subject: [PATCH] SQL query fix --- src/OAuth2/Storage/PDO/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2/Storage/PDO/Session.php b/src/OAuth2/Storage/PDO/Session.php index 6af2d107..e3df933d 100644 --- a/src/OAuth2/Storage/PDO/Session.php +++ b/src/OAuth2/Storage/PDO/Session.php @@ -210,7 +210,7 @@ class Session implements SessionInterface $db = \ezcDbInstance::get(); $stmt = $db->prepare('SELECT session_id FROM `oauth_session_access_tokens` WHERE - access_token = :accessToken AND access_token_expires <= ' . time()); + access_token = :accessToken AND access_token_expires >= ' . time()); $stmt->bindValue(':accessToken', $accessToken); $stmt->execute();