From 76557e6b9505199cb8a7d0ac481cfe2f69727fae Mon Sep 17 00:00:00 2001 From: John Kingsnorth Date: Thu, 17 Oct 2024 09:52:20 +0100 Subject: [PATCH] dev/core#5534 Fixes overzealous removal of directories --- CRM/Utils/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index e00e0e19783..12e5df546db 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -137,7 +137,7 @@ public static function cleanDir(string $target, bool $rmdir = TRUE, bool $verbos } } elseif (is_dir($object)) { - CRM_Utils_File::cleanDir($object, TRUE, $verbose); + CRM_Utils_File::cleanDir($object, $rmdir, $verbose); } elseif (is_file($object)) { CRM_Utils_File::try_unlink($object, "file");