From 676d3c820c346192c671dde3d479f16db10734c1 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 22 Jan 2008 17:42:09 +0000 Subject: Fixed bug #3289 where temp files in directories being tested with is_really_writable() were not being handled properly --- system/helpers/file_helper.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/helpers/file_helper.php') diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index a5dc437c2..5fb31cfaa 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php @@ -200,8 +200,10 @@ function is_really_writable($file) return FALSE; } + fclose($fp); @chmod($file, 0777); @unlink($file); + return TRUE; } elseif (($fp = @fopen($file, 'ab')) === FALSE) { -- cgit v1.2.3-24-g4f1b