Mailer project continued (heavy refactoring):
[mailer.git] / inc / wrapper-functions.php
index c8b651cf2196a4f1cf76eb087267ddf136b43ac8..ba56fb2c8e3e9d5bab2e12f2020d764694fc292a 100644 (file)
@@ -2789,7 +2789,7 @@ function ifUserPointsLocked ($userid) {
 // This function does always add a new-line character to every line.
 function appendLineToFile ($file, $line) {
        $fp = fopen($file, 'a') or reportBug(__FUNCTION__, __LINE__, 'Cannot write to file ' . basename($file) . '!');
-       fwrite($fp, $line . chr(10));
+       fwrite($fp, $line . PHP_EOL);
        fclose($fp);
 }