summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index ebbecbc..667e76c 100644
--- a/it.class
+++ b/it.class
@@ -748,7 +748,7 @@ function file_put($filename, $data, $p = array())
else if ($p['lines'])
$data = count((array)$data) ? join("\n", (array)$data) ."\n" : "";
- return file_put_contents($filename == "-" ? "php://stdout" : $filename, $data);
+ return ($out = fopen($filename == "-" ? "php://stdout" : $filename, "w")) && (fputs($out, $data) === strlen($data)) && fclose($out);
}
}