From: Andrey Kutejko Date: Sat, 27 Apr 2013 12:31:04 +0000 (+0300) Subject: fix removeDirectory X-Git-Tag: 0.5~293 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=df21e4bc82e0f08890754c962a8ea33a6141a999;p=ipf.git fix removeDirectory --- 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); } }