Skip to content

Commit

Permalink
Merge pull request #30224 from owncloud/stable10-trashbin-check-perms
Browse files Browse the repository at this point in the history
[stable10] Convert null to empty string for Oracle in file cache accessor
  • Loading branch information
Vincent Petry authored Jan 23, 2018
2 parents e20062a + d64eb8e commit 036f541
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ public function get($file) {
$data['storage_mtime'] = $data['mtime'];
}
$data['permissions'] = (int)$data['permissions'];
// Oracle stores empty strings as null...
if (is_null($data['name'])) {
$data['name'] = '';
}
if (is_null($data['path'])) {
$data['path'] = '';
}
return new CacheEntry($data);
} else if (!$data and is_string($file)) {
if (isset($this->partial[$file])) {
Expand Down

0 comments on commit 036f541

Please sign in to comment.