commit | 8d9b44ddb371846d458cef241c35ea5c196a5424 | [log] [tgz] |
---|---|---|
author | Rick Ellis <rick.ellis@ellislab.com> | Wed Oct 01 01:18:43 2008 +0000 |
committer | Rick Ellis <rick.ellis@ellislab.com> | Wed Oct 01 01:18:43 2008 +0000 |
tree | e4f44e528200cca1e6c8eba946cae97b0fc299e2 | |
parent | ed339bc99ba2e7b26b3153cbf350a307fb4367c6 [diff] |
Made a small error trapping change to the delete_directory function
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php index 6a957a1..0e3dd5e 100644 --- a/system/libraries/Ftp.php +++ b/system/libraries/Ftp.php
@@ -379,7 +379,7 @@ $list = $this->list_files($filepath); - if ($list !== FALSE) + if ($list !== FALSE AND count($list) > 0) { foreach ($list as $item) {