summaryrefslogtreecommitdiffstats
path: root/system/libraries/Ftp.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-01 03:18:43 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-01 03:18:43 +0200
commit8d9b44ddb371846d458cef241c35ea5c196a5424 (patch)
treee4f44e528200cca1e6c8eba946cae97b0fc299e2 /system/libraries/Ftp.php
parented339bc99ba2e7b26b3153cbf350a307fb4367c6 (diff)
Made a small error trapping change to the delete_directory function
Diffstat (limited to 'system/libraries/Ftp.php')
-rw-r--r--system/libraries/Ftp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php
index 6a957a183..0e3dd5ef9 100644
--- a/system/libraries/Ftp.php
+++ b/system/libraries/Ftp.php
@@ -379,7 +379,7 @@ class CI_FTP {
$list = $this->list_files($filepath);
- if ($list !== FALSE)
+ if ($list !== FALSE AND count($list) > 0)
{
foreach ($list as $item)
{