diff options
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -718,7 +718,7 @@ function file_put($filename, $data, $p = array()) if ($p['keyval']) $data = join("", it::map('"$k\t$v\n"', $data)); else if ($p['lines']) - $data = join("", it::map('"$v\n"', $data)); + $data = count((array)$data) ? join("\n", (array)$data) ."\n" : ""; return file_put_contents($filename == "-" ? "php://stdout" : $filename, $data); } |