From df21e4bc82e0f08890754c962a8ea33a6141a999 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 27 Apr 2013 15:31:04 +0300 Subject: [PATCH] fix removeDirectory --- ipf/utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipf/utils.php b/ipf/utils.php index e0c0826..040e45f 100644 --- a/ipf/utils.php +++ b/ipf/utils.php @@ -175,8 +175,8 @@ class IPF_Utils } } } - return rmdir($folderPath); - } else { + rmdir($folderPath); + } else if (is_file($folderPath)) { unlink($folderPath); } } -- 2.49.0