From 9e9c40eabd07cc4b44f2a9ae3d7935ad2a07b9fa Mon Sep 17 00:00:00 2001
From: Frank Karlitschek <frank@owncloud.org>
Date: Wed, 13 Jun 2012 17:27:49 +0200
Subject: [PATCH] fix time call

---
 lib/util.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/util.php b/lib/util.php
index d1d5983dcf..e4efd953ec 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -409,7 +409,7 @@ class OC_Util {
 		// check if the token is in the user session and if the timestamp is from the last hour.
 		if(isset($_SESSION['requesttoken-'.$token])) {
 			$timestamp=$_SESSION['requesttoken-'.$token];
-			if($timestamp+$maxtime<time){
+			if($timestamp+$maxtime<time()){
 				//token exired. exiting
 				exit;
 
-- 
GitLab