Index: /trunk/src/kml.php
===================================================================
--- /trunk/src/kml.php	(revision 7770)
+++ /trunk/src/kml.php	(revision 7771)
@@ -9,5 +9,5 @@
 require_once($config['file_init']);
 
-$time = $_GET['time'] ? $_GET['time'] : mktime() - (mktime() % 300);
+$time = isset($_GET['time']) ? $_GET['time'] : mktime() - (mktime() % 300);
 
 // Check if the file is already cached
@@ -27,8 +27,8 @@
 
 	// Write the file to the server
-	$kmlFile = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'w');
-	$kmlFile->write($kmlFile->toString());	// Function doesn't work yet... Waiting for David...
+	$file = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'w');
+	$file->write($kmlFile->toString());	// Function doesn't work yet... Waiting for David...
 }
 
-header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');
+//header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');
 ?>
Index: /trunk/src/logfile.txt
===================================================================
--- /trunk/src/logfile.txt	(revision 7770)
+++ /trunk/src/logfile.txt	(revision 7771)
@@ -0,0 +1,2 @@
+Debug (8 | 23:23.36 04/15/10 | ): Opening the file "D:\Werkplaats\NodeMap2.0\trunk\src/kml/nodemap-1271366400.kml"
+	In file "D:\Werkplaats\NodeMap2.0\trunk\src\inc\FileHandler.class.php" on line "22"
