diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-07-30 16:22:32 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-07-30 16:22:32 +0000 |
| commit | f78dbc4493f67167f6f4367c6be8792475f6fcc3 (patch) | |
| tree | b18b58ce56162520103a08ad21b7aea617efa4f9 /src/scoretable.php | |
| parent | e8b566439af4bf24aaf4ebfc72d510a4222b5a9b (diff) | |
| download | boca-f78dbc4493f67167f6f4367c6be8792475f6fcc3.tar.gz boca-f78dbc4493f67167f6f4367c6be8792475f6fcc3.zip | |
bug fixes
Diffstat (limited to 'src/scoretable.php')
| -rw-r--r-- | src/scoretable.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scoretable.php b/src/scoretable.php index 0348d51..b8025a3 100644 --- a/src/scoretable.php +++ b/src/scoretable.php @@ -141,10 +141,13 @@ if($_SESSION["usertable"]["usertype"]=='score' || $_SESSION["usertable"]["userty } else { @rename($fname . ".tmp",$destination); } - @fclose($fp); + @fclose($fp); + + getMainXML(); + @unlink($destination . ".lck"); } else { - if(file_exists($destination . ".lck",'x') && filemtime($destination . ".lck",'x') < time() - 180) + if(file_exists($destination . ".lck") && filemtime($destination . ".lck") < time() - 180) @unlink($destination . ".lck"); } } |