changeset 1063:85e268f6a822

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 14 Sep 2016 12:42:03 +0300
parents 7298b2898a6d
children 755c1acae3f3
files faptool.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Wed Feb 10 16:20:56 2016 +0200
+++ b/faptool.php	Wed Sep 14 12:42:03 2016 +0300
@@ -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;