From c27c9fac98784e77e732fa2ad98f78ae752249ba Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 2 Feb 2023 11:32:57 +0100 Subject: [PATCH] Try fixing Oracle Signed-off-by: Joas Schilling --- lib/private/Files/Cache/Cache.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index ec284282178..380e4427e7d 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -977,7 +977,12 @@ class Cache implements ICache { $path = $result->fetchOne(); $result->closeCursor(); - return $path; + if ($path === false) { + return false; + } + + // Make sure Oracle does not continue with null for empty strings + return (string)$path; } /** -- 2.39.5