summaryrefslogtreecommitdiffstats
path: root/system/helpers/compatibility_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-07 05:20:03 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-07 05:20:03 +0200
commitd196d4e8593adc8324e4bfbbb959c89ecb3284dc (patch)
treeed7ebe695da58898691f16589e8437c7cc7a6b02 /system/helpers/compatibility_helper.php
parentf9b5654270c721c3055facd65f01363c0db99799 (diff)
fixed a typo with a variable in the compatibility helper
Diffstat (limited to 'system/helpers/compatibility_helper.php')
-rw-r--r--system/helpers/compatibility_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/compatibility_helper.php b/system/helpers/compatibility_helper.php
index 9cc282598..0d214648c 100644
--- a/system/helpers/compatibility_helper.php
+++ b/system/helpers/compatibility_helper.php
@@ -129,7 +129,7 @@ if (! function_exists('file_put_contents'))
if (($flags & LOCK_EX) > 0)
{
- if (! flock($fh, LOCK_EX))
+ if (! flock($fp, LOCK_EX))
{
$backtrace = debug_backtrace();
_exception_handler(E_USER_WARNING, 'file_put_contents('.htmlentities($filename).') unable to acquire an exclusive lock on file', $backtrace[0]['file'], $backtrace[0]['line']);
@@ -145,7 +145,7 @@ if (! function_exists('file_put_contents'))
}
// Close the handle
- @fclose($fh);
+ @fclose($fp);
// Return length
return $written;