diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-05 19:33:15 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-05 19:33:15 +0200 |
commit | 10eef49c3cf4636416a29427999d1a65a0aa1f0b (patch) | |
tree | 39130f7338bbd875440aa7d58f136df45343b0af | |
parent | dcf1eed8164c8ab7490c82157d70d95f51aaddd4 (diff) | |
download | nextcloud-server-10eef49c3cf4636416a29427999d1a65a0aa1f0b.tar.gz nextcloud-server-10eef49c3cf4636416a29427999d1a65a0aa1f0b.zip |
return null when a cache variable is not set
-rw-r--r-- | lib/cache/file.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cache/file.php b/lib/cache/file.php index 02aad5187ee..a724b9682a8 100644 --- a/lib/cache/file.php +++ b/lib/cache/file.php @@ -7,7 +7,7 @@ */ -class OC_Cache_File { +class OC_Cache_File extends OC_Cache { protected function getStorage() { if(OC_User::isLoggedIn()){ $subdir = 'cache'; @@ -28,11 +28,11 @@ class OC_Cache_File { $mtime = $storage->filemtime($key); if ($mtime < time()) { $storage->unlink($key); - return false; + return null; } return $storage->file_get_contents($key); } - return false; + return null; } public function set($key, $value, $ttl) { |