diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-09 16:26:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-10 15:35:43 +0100 |
commit | cffad62771a1640675e92fdc6a85ff013bac2ec4 (patch) | |
tree | afa8909b67d35fea4b21256af43ee4ab4603736b /lib/private/Files/Cache | |
parent | 31e243be744aa726178a5ecb15649e7675a049d4 (diff) | |
download | nextcloud-server-cffad62771a1640675e92fdc6a85ff013bac2ec4.tar.gz nextcloud-server-cffad62771a1640675e92fdc6a85ff013bac2ec4.zip |
Empty string is returned as null, but empty string in file cache is the root and exists
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index e74cc86d9c9..1d3b4da3bce 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -998,7 +998,11 @@ class Cache implements ICache { $path = $result->fetchColumn(); $result->closeCursor(); - return $path === false ? null : $path; + if ($path === false) { + return null; + } + + return (string) $path; } /** |