Mercurial > hg > lukkari
changeset 182:a59bb75aa0ec
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 30 Sep 2015 08:38:52 +0300 |
parents | 9c3100ab29cc |
children | dda30eff3266 |
files | index.php |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Tue Sep 08 10:48:48 2015 +0300 +++ b/index.php Wed Sep 30 08:38:52 2015 +0300 @@ -513,8 +513,7 @@ $cacheDirty = FALSE; // Try to read cachefile, if we can get file lock on it -$fp = @fopen($courseCacheFile, "rb"); -if ($fp) +if (($fp = @fopen($courseCacheFile, "rb")) !== FALSE) { if (flock($fp, LOCK_SH)) {