aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/cache
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-02-11 13:29:08 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-02-11 13:29:08 -0800
commitdf528bf1db4a45c8fd3e8b814d98ded83b1dbe56 (patch)
tree117b3b3220d3dc485ba369db7676cd6a3366840c /lib/files/cache
parentf2b5bc8ab8fadaee3db3a03e6a4748fdb28a01b1 (diff)
parent4e5a3fbcafcaa0cdaba351dfb307b0000179c832 (diff)
downloadnextcloud-server-df528bf1db4a45c8fd3e8b814d98ded83b1dbe56.tar.gz
nextcloud-server-df528bf1db4a45c8fd3e8b814d98ded83b1dbe56.zip
Merge pull request #1635 from irgsmirx/master-sqlserver
New/rebased/cleaned-up MS SQL Server support
Diffstat (limited to 'lib/files/cache')
-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;
}