SQL query fix

This commit is contained in:
Alex Bilbie 2013-05-05 18:06:00 +01:00
parent 6897e233d4
commit 9b73eab07c

View File

@ -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();