summaryrefslogtreecommitdiffstats
path: root/app/classes/Cache.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-11 18:15:03 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-11 18:15:03 +0100
commite15d370cb009809ea4f0be606303c558ae35789d (patch)
tree8d68bbcbfe453c44fc76322bbecb22031a69babd /app/classes/Cache.php
parent1b7fbc4614b577e14052fea50487ee5d0a301e93 (diff)
downloadplanet-e15d370cb009809ea4f0be606303c558ae35789d.tar
planet-e15d370cb009809ea4f0be606303c558ae35789d.tar.gz
planet-e15d370cb009809ea4f0be606303c558ae35789d.tar.bz2
planet-e15d370cb009809ea4f0be606303c558ae35789d.tar.xz
planet-e15d370cb009809ea4f0be606303c558ae35789d.zip
Fix warnings
Diffstat (limited to 'app/classes/Cache.php')
-rw-r--r--app/classes/Cache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/classes/Cache.php b/app/classes/Cache.php
index f4b2dcf..c2e0c27 100644
--- a/app/classes/Cache.php
+++ b/app/classes/Cache.php
@@ -112,7 +112,9 @@ class Cache
return true;
}
- @unlink($filename);
+ if (is_file($filename)) {
+ unlink($filename);
+ }
return false;
}