summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorAdministrator <Administrator@WINDOWS-2012>2013-02-10 14:08:00 +0100
committerAdministrator <Administrator@WINDOWS-2012>2013-02-10 14:08:00 +0100
commit4e5a3fbcafcaa0cdaba351dfb307b0000179c832 (patch)
tree117b3b3220d3dc485ba369db7676cd6a3366840c /lib/files
parent41ec976fd74320c379f95d05d3a490310f06402e (diff)
downloadnextcloud-server-4e5a3fbcafcaa0cdaba351dfb307b0000179c832.tar.gz
nextcloud-server-4e5a3fbcafcaa0cdaba351dfb307b0000179c832.zip
- Fixed indentations.
- Fixed a bug in legacy.php: there was an error that was not checked for if the table 'fscache' did not exist in the database.
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/legacy.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/files/cache/legacy.php b/lib/files/cache/legacy.php
index 33d4b8e7c9f..bdc3cbf00b2 100644
--- a/lib/files/cache/legacy.php
+++ b/lib/files/cache/legacy.php
@@ -51,6 +51,12 @@ class Legacy {
$this->cacheHasItems = false;
return false;
}
+
+ if ($result === false || property_exists($result, 'error_message_prefix')) {
+ $this->cacheHasItems = false;
+ return false;
+ }
+
$this->cacheHasItems = (bool)$result->fetchRow();
return $this->cacheHasItems;
}