summaryrefslogtreecommitdiffstats
path: root/system/helpers/file_helper.php
diff options
context:
space:
mode:
authorRonald Beilsma <beilsma@gmail.com>2012-01-10 16:11:00 +0100
committerRonald Beilsma <beilsma@gmail.com>2012-01-10 16:11:00 +0100
commit92fcffa6c76a2010ee7a2162554b304ba7cf0549 (patch)
tree51bbdfe5c0a903988e5ea914f0553f06a126cdf1 /system/helpers/file_helper.php
parent57f58a27df738408a06307442a9a344414e90016 (diff)
closedir closes directory handle, not directory path
Diffstat (limited to 'system/helpers/file_helper.php')
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index d76d85691..89b2a54db 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -259,7 +259,7 @@ if ( ! function_exists('get_dir_file_info'))
$_filedata[$file]['relative_path'] = $relative_path;
}
}
- closedir($source_dir);
+ closedir($fp);
return $_filedata;
}