fix time call

This commit is contained in:
Frank Karlitschek 2012-06-13 17:27:49 +02:00
parent b9d5f510c3
commit 9e9c40eabd
1 changed files with 1 additions and 1 deletions

View File

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