summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/SQLStore.php
diff options
context:
space:
mode:
authordAniel hAhler <php-openid@thequod.de>2007-12-08 23:40:37 +0000
committerdAniel hAhler <php-openid@thequod.de>2007-12-08 23:40:37 +0000
commit575f39c0ebb4d539ff8882b8ea39879726d9b7d6 (patch)
treedb6530078b9285170d2465694be069926caf9630 /Auth/OpenID/SQLStore.php
parentee6960fbef50e8dbcc951305d5676d77a2e53f37 (diff)
downloadphp-openid-575f39c0ebb4d539ff8882b8ea39879726d9b7d6.zip
php-openid-575f39c0ebb4d539ff8882b8ea39879726d9b7d6.tar.gz
php-openid-575f39c0ebb4d539ff8882b8ea39879726d9b7d6.tar.bz2
[project @ use-time-instead-of-(gm)mktime]
Use time() instead of (gm)mktime(), when used for getting the current time (called without arguments). According to "hunk ./Auth/OpenID/Nonce.php 99" gmmktime() for PHP4 is buggy and using mktime() makes no sense when called without args: just use time() then directly.
Diffstat (limited to 'Auth/OpenID/SQLStore.php')
-rw-r--r--Auth/OpenID/SQLStore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/OpenID/SQLStore.php b/Auth/OpenID/SQLStore.php
index b4c822b..4bcd7e6 100644
--- a/Auth/OpenID/SQLStore.php
+++ b/Auth/OpenID/SQLStore.php
@@ -481,7 +481,7 @@ class Auth_OpenID_SQLStore extends Auth_OpenID_OpenIDStore {
{
global $Auth_OpenID_SKEW;
- if ( abs($timestamp - mktime()) > $Auth_OpenID_SKEW ) {
+ if ( abs($timestamp - time()) > $Auth_OpenID_SKEW ) {
return False;
}