summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-08 22:35:01 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-08 22:35:01 +0200
commit6e7c274d2ea70f7af5035c890aa39ea5096f7fd1 (patch)
tree106fef88a2b23626843b08b95ad3eb9b95060d45 /lib/private
parent8ede209ea3ca4913f7d6d4447ff14439ab3cf1b7 (diff)
parent05dc694c5c113079306a351f16a422e514d4a1e8 (diff)
downloadnextcloud-server-6e7c274d2ea70f7af5035c890aa39ea5096f7fd1.tar.gz
nextcloud-server-6e7c274d2ea70f7af5035c890aa39ea5096f7fd1.zip
Merge pull request #8499 from owncloud/shareextstoragemountpointfix
Fix sharing of ext storage mount points
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/cache/cache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 1c9de56f8c5..c4f03b4d9ef 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -603,6 +603,10 @@ class Cache {
$sql = 'SELECT `path` FROM `*PREFIX*filecache` WHERE `fileid` = ? AND `storage` = ?';
$result = \OC_DB::executeAudited($sql, array($id, $this->getNumericStorageId()));
if ($row = $result->fetchRow()) {
+ // Oracle stores empty strings as null...
+ if ($row['path'] === null) {
+ return '';
+ }
return $row['path'];
} else {
return null;