diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-08 22:35:01 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-08 22:35:01 +0200 |
commit | 6e7c274d2ea70f7af5035c890aa39ea5096f7fd1 (patch) | |
tree | 106fef88a2b23626843b08b95ad3eb9b95060d45 /lib/private | |
parent | 8ede209ea3ca4913f7d6d4447ff14439ab3cf1b7 (diff) | |
parent | 05dc694c5c113079306a351f16a422e514d4a1e8 (diff) | |
download | nextcloud-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.php | 4 |
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; |