Browse Source

Merge pull request #430 from sysadminstory/master

Fix Cache write verification
LogMANOriginal 7 years ago
parent
commit
29e64f77aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      caches/FileCache.php

+ 1 - 1
caches/FileCache.php

@@ -14,7 +14,7 @@ class FileCache implements CacheInterface {
 	public function saveData($datas){
 		$writeStream = file_put_contents($this->getCacheFile(), json_encode($datas, JSON_PRETTY_PRINT));
 
-		if(!$writeStream) {
+		if($writeStream === FALSE) {
 			throw new \Exception("Cannot write the cache... Do you have the right permissions ?");
 		}