diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-05-11 15:58:21 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-05-11 15:58:21 +0200 |
commit | 2735b3eeb3403ba813aac56ed6f10be536839ff6 (patch) | |
tree | c8776c6e1d89da080aefabfbc4e928b6d8ba21db /system | |
parent | 26872de184e4aa2ae92bae645782089e9656115d (diff) |
fixed whitespace, massaged Zip read_dir() docs
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Zip.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index 3ba3ddc83..92dfc814d 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php @@ -273,7 +273,7 @@ class CI_Zip { */ function read_dir($path, $preserve_filepath = TRUE, $root_path = NULL) { - if (!$fp = @opendir($path)) + if ( ! $fp = @opendir($path)) { return FALSE; } @@ -295,7 +295,6 @@ class CI_Zip { { $this->read_dir($path.$file."/", $preserve_filepath, $root_path); } - else { if (FALSE !== ($data = file_get_contents($path.$file))) @@ -311,6 +310,7 @@ class CI_Zip { } } } + return TRUE; } |