Skip to content

Commit

Permalink
Convert null to empty string for Oracle in file cache accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Jan 17, 2018
1 parent 8d5ad06 commit c30c8ec
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 c30c8ec

Please sign in to comment.