diff --git a/helpers.inc.php b/helpers.inc.php index 03568f6..55d667e 100644 --- a/helpers.inc.php +++ b/helpers.inc.php @@ -587,7 +587,7 @@ function rrmdir(string $dir, bool $remove_top_dir = true) { if($object != "." && $object != "..") { - if(filetype($dir."/".$object) == "dir") + if(is_dir($dir."/".$object)) rrmdir($dir."/".$object); else unlink($dir."/".$object);