Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Major bug
Browse files Browse the repository at this point in the history
This bug was responsible for the complete blocking of avatar changes,
pseudo or uuid. To avoid errors you have to update!
  • Loading branch information
thibaultjunin committed May 8, 2017
1 parent 578a997 commit 588f37c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/STAILEUAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function setCache($type, $name, $data){
}
if(file_exists(".stail_cache/".$type."/".$name)){
$last = date("U", filemtime(".stail_cache/".$type."/".$name));
if(intval($last)+300 >= time()){
if(intval($last)+300 <= time()){
unlink(".stail_cache/".$type."/".$name);
file_put_contents(".stail_cache/".$type."/".$name, $data);
}
Expand Down Expand Up @@ -102,7 +102,7 @@ private function getCache($type, $name){
private function isCached($type, $name){
if(file_exists(".stail_cache/".$type."/".$name)){
$last = date("U", filemtime(".stail_cache/".$type."/".$name));
if(intval($last)+600 >= time()){
if(intval($last)+300 <= time()){
return false;
}else{
return true;
Expand Down

0 comments on commit 588f37c

Please sign in to comment.