This commit is contained in:
William Knauss
2014-06-05 20:53:19 -04:00
parent 01e71adf36
commit 2f3732e350

View File

@@ -1179,11 +1179,11 @@ class parseCSV {
* @return true or false * @return true or false
*/ */
protected function _wfile ($file, $string = '', $mode = 'wb', $lock = 2) { protected function _wfile ($file, $string = '', $mode = 'wb', $lock = 2) {
if ( $fp = fopen($file, $mode) ) { if ($fp = fopen($file, $mode)) {
flock($fp, $lock); flock($fp, $lock);
$re = fwrite($fp, $string); $re = fwrite($fp, $string);
$re2 = fclose($fp); $re2 = fclose($fp);
if ( $re != false && $re2 != false ) { if ($re != false && $re2 != false) {
return true; return true;
} }
} }