diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-07 05:20:03 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-07 05:20:03 +0200 |
commit | d196d4e8593adc8324e4bfbbb959c89ecb3284dc (patch) | |
tree | ed7ebe695da58898691f16589e8437c7cc7a6b02 /system/helpers | |
parent | f9b5654270c721c3055facd65f01363c0db99799 (diff) |
fixed a typo with a variable in the compatibility helper
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/compatibility_helper.php | 4 |
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; |