]> git.andy128k.dev Git - ipf.git/commitdiff
fix removeDirectory
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Apr 2013 12:31:04 +0000 (15:31 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Apr 2013 12:31:04 +0000 (15:31 +0300)
ipf/utils.php

index e0c08269bcd874f052d2951a589479b22c492e83..040e45fb330a82cd069200f0996479e1c80135ec 100644 (file)
@@ -175,8 +175,8 @@ class IPF_Utils
                     }
                 }
             }
-            return rmdir($folderPath);
-        } else {
+            rmdir($folderPath);
+        } else if (is_file($folderPath)) {
             unlink($folderPath);
         }
     }