fixed whitespace, massaged Zip read_dir() docs
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 3ba3ddc..92dfc81 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -273,7 +273,7 @@
*/
function read_dir($path, $preserve_filepath = TRUE, $root_path = NULL)
{
- if (!$fp = @opendir($path))
+ if ( ! $fp = @opendir($path))
{
return FALSE;
}
@@ -295,7 +295,6 @@
{
$this->read_dir($path.$file."/", $preserve_filepath, $root_path);
}
-
else
{
if (FALSE !== ($data = file_get_contents($path.$file)))
@@ -311,6 +310,7 @@
}
}
}
+
return TRUE;
}