diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-06-13 17:27:49 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-06-13 17:27:49 +0200 |
commit | 9e9c40eabd07cc4b44f2a9ae3d7935ad2a07b9fa (patch) | |
tree | 1793e1ecfb36980e340f9ba7357c51d1cc726356 /lib/util.php | |
parent | b9d5f510c37b3591cb969132d3099561dc55a89f (diff) | |
download | nextcloud-server-9e9c40eabd07cc4b44f2a9ae3d7935ad2a07b9fa.tar.gz nextcloud-server-9e9c40eabd07cc4b44f2a9ae3d7935ad2a07b9fa.zip |
fix time call
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index d1d5983dcfb..e4efd953ec5 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; |