diff options
-rw-r--r-- | system/libraries/Ftp.php | 2 |
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)
{
|