diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-02-19 17:59:48 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-02-19 17:59:48 +0100 |
commit | 79c687a7dd93e89be141e33d9f0de72461ae2802 (patch) | |
tree | 56bcc23181d82fc6c19c739daceef3d4dd4c7c51 /application/controllers/file.php | |
parent | f5bc76ce2fd240325ffc2d0a5e71a27231de2149 (diff) |
file/cron: close dir handles after use
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index c83805600..cb2a27a9d 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -310,10 +310,13 @@ class File extends CI_Controller { } } + closedir($dh); + if ($empty) { rmdir($upload_path."/".$dir); } } + closedir($outer_dh); } } |