From aa3c2e532f1fb431e751a9213ca289c5f8cbbdf6 Mon Sep 17 00:00:00 2001
From: redray <redray@ispconfig3>
Date: Tue, 17 Feb 2009 08:27:30 -0500
Subject: [PATCH] feature freeze ... removed some new tables ...

---
 install/lib/install.lib.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php
index bf93cad..4af0d54 100644
--- a/install/lib/install.lib.php
+++ b/install/lib/install.lib.php
@@ -530,6 +530,9 @@
 			}
 		}
 		if($found == 0) {
+			//* add \n if the last line does not end with \n or \r
+			if(substr($out,-1) != "\n" && substr($out,-1) != "\r") $out .= "\n";
+			//* add the new line at the end of the file
 			$out .= $new_line."\n";
 		}
 		file_put_contents($filename,$out);

--
Gitblit v1.9.1