changeset 1068:50d005dd22d8

Merged.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 24 Jan 2017 16:44:30 +0200
parents 2d7d5940ec47 (diff) 82ecea33c477 (current diff)
children 5f92fa5e683a
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Tue Jan 24 16:43:58 2017 +0200
+++ b/faptool.php	Tue Jan 24 16:44:30 2017 +0200
@@ -534,7 +534,7 @@
   }
 
   $sbinfo[] = "";
-
+  $sbinfoStr = implode("\n", $sbinfo);
 
   // Create the destination directory
   if (wtMakeDir(stMakePath(FALSE, FALSE, array($pathPrefix, $compo["cpath"])), 0755) === false)
@@ -585,7 +585,7 @@
   }
 
   $dstFilename = stMakePath(FALSE, FALSE, array($dstPath, "fapinfo.txt"));
-  if (@file_put_contents($dstFilename, implode("\r\n", $sbinfo)) === FALSE)
+  if (@file_put_contents($dstFilename, $sbinfoStr) === FALSE)
   {
     echo "ERROR: Failed to output '".$dstFilename."'\n";
     return FALSE;